Created
January 18, 2012 18:46
-
-
Save eduardocereto/1634866 to your computer and use it in GitHub Desktop.
Current AJAX Response / Proposed AJAX Response
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
{ | |
"content": "HTML CONTENT HERE", //content redacted for clearnes | |
"bg": "bg-g-100", | |
"title": "Enter Your Address", | |
"analytics": [ | |
[ | |
"<", | |
"script type=\"text/javascript\">", | |
"<br /> var _gaq = _gaq || []", | |
"<br /> _gaq.push(['_setAccount', 'UA-17812842-1'])", | |
"<br /> _gaq.push(['_setDomainName', 'XXX.com'])", // _setDomainName omitted | |
"<br /> _gaq.push(['_setAllowHash', false])", "<br /> _gaq.push(['_trackPageview'])", | |
"<br /><br /> (function() {<br /> var ga = document.createElement('script')", " ga.type = 'text/javascript'", | |
" ga.async = true", | |
"<br /> ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'", | |
"<br /> var s = document.getElementsByTagName('script')[0]", | |
" s.parentNode.insertBefore(ga, s)", "<br /> })()", | |
"<br /><", | |
"/script>" | |
] | |
] | |
} |
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
{ | |
"content": "HTML CONTENT HERE", //content redacted for clearnes | |
"bg": "bg-g-100", | |
"title": "Enter Your Address", | |
"analytics": { | |
'_trackEvent': [ | |
['sampleCategory', 'sampleAction', 'sampleLabel'] | |
], | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment