Themes - How to Setup Analytics integrations
Themes offers an out-of-the-box integration with Google Analytics, Google Tag Manager, Chartbeat, and Comscore. By adding your analytics ID(s) in the administrative settings, the relevant scripts will be added in the head to all pages on your website.
You do not need to drag/drop a specific block onto the page or template for it to be added. You must be using the Default Output Type provided by Themes, or configure your Custom Default Output Type to accept these IDs and add the relevant scripts.
These are out-of-the-box scripts that the analytics vendor provides. If you wish to send custom dimensions in addition to the out-of-the-box analytics information, you will need to do so through a tag manager (like GTM) or add your own custom code in a Custom Default Output Type.
Google Analytics
If Google Analytics ID is set as a Theme Setting, then the basic Google Analytics script will be loaded on all pages on the given website.
Google Tag Manager
If Google Tag Manager ID is set as a Theme Setting, then the basic Google Tag Manager script will be loaded on all pages on the given website.
Chartbeat
If Chartbeat Account ID and Chartbeat Domain are set as Theme Settings, then the Basic Chartbeat Script will be loaded on all pages on the given website.
chartbeatAccountId corresponds to _sf_async_config.uid in Chartbeat’s Script
chartbeatDomain corresponds to _sf_async_config.domain in Chartbeat’s Script
Comscore
If Comscore ID is set as a Theme Setting, then the basic Comscore script will be loaded on all pages on the given website. The value replaces [COMSCORE ID] in the code snippet below.
<!— Begin comScore Tag --> <script> var _comscore = _comscore || []; _comscore.push({ c1: "2", c2: "[COMSCORE ID]" }); (function() { var s = document.createElement("script"), el = document.getElementsByTagName("script")[0]; s.async = true; s.src = (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js"; el.parentNode.insertBefore(s, el); })(); </script> <noscript> <img src="http://b.scorecardresearch.com/p?c1=2&c2=[COMSCORE ID]&cv=2.0&cj=1" /> </noscript> <!-- End comScore Tag -->