Skip to content

Instantly share code, notes, and snippets.

@ju1
Created February 28, 2017 11:19
Show Gist options
  • Save ju1/cca042f5e5d9a8686fd4a76929cef9e3 to your computer and use it in GitHub Desktop.
Save ju1/cca042f5e5d9a8686fd4a76929cef9e3 to your computer and use it in GitHub Desktop.
LinkedIn Tracking Recipe for Google Tag Manager
{
"exportFormatVersion": 2,
"exportTime": "2017-02-28 11:19:24",
"containerVersion": {
"path": "accounts/1164259306/containers/6431225/versions/0",
"accountId": "1164259306",
"containerId": "6431225",
"containerVersionId": "0",
"container": {
"path": "accounts/1164259306/containers/6431225",
"accountId": "1164259306",
"containerId": "6431225",
"name": "LinkedIn Recipe",
"publicId": "GTM-TFDCVJV",
"usageContext": [
"WEB"
],
"fingerprint": "1488280737270",
"tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/1164259306/containers/6431225/workspaces?apiLink=container"
},
"tag": [
{
"accountId": "1164259306",
"containerId": "6431225",
"tagId": "1",
"name": "GA - Social - Social Interaction",
"type": "ua",
"parameter": [
{
"type": "BOOLEAN",
"key": "doubleClick",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "setTrackerName",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "useDebugVersion",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "trackType",
"value": "TRACK_SOCIAL"
},
{
"type": "TEMPLATE",
"key": "socialAction",
"value": "{{dlv - socialAction}}"
},
{
"type": "BOOLEAN",
"key": "enableLinkId",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "socialActionTarget",
"value": "{{dlv - socialTarget}}"
},
{
"type": "TEMPLATE",
"key": "socialNetwork",
"value": "{{dlv - socialNetwork}}"
},
{
"type": "TEMPLATE",
"key": "trackingId",
"value": "{{YOUR_GA_TRACKING_ID}}"
}
],
"fingerprint": "1488280757481",
"firingTriggerId": [
"6"
],
"tagFiringOption": "ONCE_PER_EVENT"
},
{
"accountId": "1164259306",
"containerId": "6431225",
"tagId": "2",
"name": "cHTML - LinkedIn Share to Data Layer",
"type": "html",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script>\n dataLayer.push({\n 'event': 'socialInteraction', \n 'socialNetwork': 'LinkedIn', \n 'socialAction': 'Share', \n 'socialTarget': window.location.href \n });\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1488280737266",
"firingTriggerId": [
"5"
],
"tagFiringOption": "ONCE_PER_EVENT"
}
],
"trigger": [
{
"accountId": "1164259306",
"containerId": "6431225",
"triggerId": "5",
"name": "Click - LinkedIn Share Button",
"type": "CLICK",
"filter": [
{
"type": "CONTAINS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{Click ID}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "li_ui_li_gen_"
}
]
}
],
"fingerprint": "1488280737263"
},
{
"accountId": "1164259306",
"containerId": "6431225",
"triggerId": "6",
"name": "Custom - Social Interaction",
"type": "CUSTOM_EVENT",
"customEventFilter": [
{
"type": "EQUALS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{_event}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "socialInteraction"
}
]
}
],
"fingerprint": "1488280737263"
}
],
"variable": [
{
"accountId": "1164259306",
"containerId": "6431225",
"variableId": "1",
"name": "dlv - socialAction",
"type": "v",
"parameter": [
{
"type": "INTEGER",
"key": "dataLayerVersion",
"value": "2"
},
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "socialAction"
}
],
"fingerprint": "1488280737263"
},
{
"accountId": "1164259306",
"containerId": "6431225",
"variableId": "2",
"name": "dlv - socialNetwork",
"type": "v",
"parameter": [
{
"type": "INTEGER",
"key": "dataLayerVersion",
"value": "2"
},
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "socialNetwork"
}
],
"fingerprint": "1488280737264"
},
{
"accountId": "1164259306",
"containerId": "6431225",
"variableId": "3",
"name": "dlv - socialTarget",
"type": "v",
"parameter": [
{
"type": "INTEGER",
"key": "dataLayerVersion",
"value": "2"
},
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "socialTarget"
}
],
"fingerprint": "1488280737264"
}
],
"builtInVariable": [
{
"accountId": "1164259306",
"containerId": "6431225",
"type": "PAGE_URL",
"name": "Page URL"
},
{
"accountId": "1164259306",
"containerId": "6431225",
"type": "PAGE_HOSTNAME",
"name": "Page Hostname"
},
{
"accountId": "1164259306",
"containerId": "6431225",
"type": "PAGE_PATH",
"name": "Page Path"
},
{
"accountId": "1164259306",
"containerId": "6431225",
"type": "REFERRER",
"name": "Referrer"
},
{
"accountId": "1164259306",
"containerId": "6431225",
"type": "EVENT",
"name": "Event"
},
{
"accountId": "1164259306",
"containerId": "6431225",
"type": "CLICK_ID",
"name": "Click ID"
}
],
"fingerprint": "0",
"tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/1164259306/containers/6431225/versions/0?apiLink=version"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment