Created
February 26, 2017 19:59
-
-
Save ju1/81d8c1f379c618542ba1f70fdadcbe40 to your computer and use it in GitHub Desktop.
Facebook Recipe for Google Tag Manager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"exportFormatVersion": 2, | |
"exportTime": "2017-02-26 19:59:02", | |
"containerVersion": { | |
"path": "accounts/1164259306/containers/6423582/versions/0", | |
"accountId": "1164259306", | |
"containerId": "6423582", | |
"containerVersionId": "0", | |
"container": { | |
"path": "accounts/1164259306/containers/6423582", | |
"accountId": "1164259306", | |
"containerId": "6423582", | |
"name": "Facebook Recipe", | |
"publicId": "GTM-M4BW84J", | |
"usageContext": [ | |
"WEB" | |
], | |
"fingerprint": "1488138838903", | |
"tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/1164259306/containers/6423582/workspaces?apiLink=container" | |
}, | |
"tag": [ | |
{ | |
"accountId": "1164259306", | |
"containerId": "6423582", | |
"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": "1488139081238", | |
"firingTriggerId": [ | |
"6" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
}, | |
{ | |
"accountId": "1164259306", | |
"containerId": "6423582", | |
"tagId": "2", | |
"name": "cHTML - Facebook Button Listener", | |
"type": "html", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "html", | |
"value": "<script>\n FB.Event.subscribe('edge.create', function(targetUrl) {\n dataLayer.push({\n 'event': 'socialInteraction', \n 'socialNetwork': 'Facebook', \n 'socialAction': 'Like', \n 'socialTarget': targetUrl\n });\n});\n</script>" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "supportDocumentWrite", | |
"value": "false" | |
} | |
], | |
"fingerprint": "1488138687908", | |
"firingTriggerId": [ | |
"5" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT" | |
} | |
], | |
"trigger": [ | |
{ | |
"accountId": "1164259306", | |
"containerId": "6423582", | |
"triggerId": "6", | |
"name": "Custom - socialInteraction", | |
"type": "CUSTOM_EVENT", | |
"customEventFilter": [ | |
{ | |
"type": "EQUALS", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "arg0", | |
"value": "{{_event}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "arg1", | |
"value": "socialInteraction" | |
} | |
] | |
} | |
], | |
"fingerprint": "1488138646255" | |
}, | |
{ | |
"accountId": "1164259306", | |
"containerId": "6423582", | |
"triggerId": "5", | |
"name": "Pageview - Window Loaded", | |
"type": "WINDOW_LOADED", | |
"fingerprint": "1488138629068" | |
} | |
], | |
"variable": [ | |
{ | |
"accountId": "1164259306", | |
"containerId": "6423582", | |
"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": "1488138776992" | |
}, | |
{ | |
"accountId": "1164259306", | |
"containerId": "6423582", | |
"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": "1488138796290" | |
}, | |
{ | |
"accountId": "1164259306", | |
"containerId": "6423582", | |
"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": "1488138838903" | |
} | |
], | |
"builtInVariable": [ | |
{ | |
"accountId": "1164259306", | |
"containerId": "6423582", | |
"type": "PAGE_URL", | |
"name": "Page URL" | |
}, | |
{ | |
"accountId": "1164259306", | |
"containerId": "6423582", | |
"type": "PAGE_HOSTNAME", | |
"name": "Page Hostname" | |
}, | |
{ | |
"accountId": "1164259306", | |
"containerId": "6423582", | |
"type": "PAGE_PATH", | |
"name": "Page Path" | |
}, | |
{ | |
"accountId": "1164259306", | |
"containerId": "6423582", | |
"type": "REFERRER", | |
"name": "Referrer" | |
}, | |
{ | |
"accountId": "1164259306", | |
"containerId": "6423582", | |
"type": "EVENT", | |
"name": "Event" | |
} | |
], | |
"fingerprint": "0", | |
"tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/1164259306/containers/6423582/versions/0?apiLink=version" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment