Confirmed users
402
edits
Adamlofting (talk | contribs) |
Adamlofting (talk | contribs) (Adding donation landing page info) |
||
| Line 59: | Line 59: | ||
analytics.event("Email Sign Up", {label: "Learn More About Webmaker"}); | analytics.event("Email Sign Up", {label: "Learn More About Webmaker"}); | ||
analytics.conversionGoal("WebmakerEmailSignUp"); | analytics.conversionGoal("WebmakerEmailSignUp"); | ||
</code> | |||
== Donation Pages (sendto.mozilla.org) == | |||
=== Measuring Traffic === | |||
==== Google Analytics ==== | |||
<code> | |||
<script type="text/javascript"> | |||
var _gaq = _gaq || []; | |||
_gaq.push(['_setAccount', 'UA-35433268-5']); | |||
_gaq.push(['_trackPageview']); | |||
(function() { | |||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |||
})(); | |||
</script> | |||
</code> | |||
==== Optimizely Code ==== | |||
This could should go immediately after the opening <head> tag | |||
<code> | |||
<script src="//cdn.optimizely.com/js/206878104.js"></script> | |||
</code> | |||
=== Conversions === | |||
==== Optimizely ==== | |||
<code> | |||
<script> | |||
window.optimizely = window.optimizely || []; | |||
window.optimizely.push(['trackEvent', 'donation', {'revenue': %%transaction_amt%% * 100}]); | |||
</script> | |||
</code> | </code> | ||