Created
June 30, 2016 15:14
-
-
Save chhib/eb5abd6bd081666f0b82f6e6f45519d7 to your computer and use it in GitHub Desktop.
Keyword Provider with 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
<!-- Roy App Keyword Provider snippet --> | |
<script> | |
(function (window) { | |
window['RoyAppKeywordProviderConfig'] = { | |
accountId: {{Keyword Provider Account ID}}, | |
mode: 'dataLayer', | |
dataLayer: { | |
name: 'dataLayer', | |
event: 'Provided keyword' | |
} | |
}; | |
var s = window.document.createElement('script'); | |
s.type = 'text/javascript'; | |
s.async = true; | |
s.src = '//cdn.royapp.com/kp.js'; | |
var x = window.document.getElementsByTagName('script')[0]; | |
x.parentNode.insertBefore(s, x); | |
}(window)); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment