We provide a single library file to support the tagging of your site: eluminate.js.
This Digital Analytics-hosted file provides JavaScript code defining a set of functions that can be called with appropriate parameter data to send data collection image requests to Digital Analytics. This file must be included in all pages implementing Digital Analytics.
- eluminate.js
- The eluminate.js file defines the core functionality of the Digital Analytics tagging technology. This file is partially minified and obfuscated. The
tag
function definitions are not obfuscated or minified. This file should be included in the<head></head>
section of all pages requiring Digital Analytics tracking.<head> <script type="text/javascript" src="//libs.coremetrics.com/eluminate.js"> </script> <script type="text/javascript"> cmSetClientID(…);</script> </head>
- cmcustom.js
- Your specific implementation might include customizations that override the default data collection functions or introduce new functions. This custom file, cmcustom.js, is delivered by Acoustic Support and is locally hosted by your organization. See the contents of this file for details on your specific customizations.
This file is included in all pages immediately after the Acoustic Digital Analytics-hosted
eluminate.js
library include:<head> <script type="text/javascript" src="//libs.coremetrics.com/eluminate.js"> </script> <script type="text/javascript" src="//thesite.com/cmcustom.js"></script> <script type="text/javascript"> cmSetClientID(…);</script> </head>
Eluminate File - Europe Data Center
The eluminate.js
file for Europe Data Center users is found at the following location: libs.de.coremetrics.com/eluminate.js
.
<script type="text/javascript"
src="//libs.de.coremetrics.com/eluminate.js">
Loading the eluminate.js tag library asynchronously in web pages
The eluminate.js
tag library can be loaded asynchronously in web pages. Use the cmTagQueue
object to ensure that all script sources are loaded and cm*
function calls execute in the required order.
Example
<body> <script type='text/javascript'> var cmTagQueue = cmTagQueue || []; cmTagQueue.push(['cmSetClientID', '99999999', false, "testdata.coremetrics.com", "mysite.com"]); cmTagQueue.push(['cmCreatePageviewTag','AsyncTestPageID','CategoryID']); </script> <script type='text/javascript'> (function() { var cm = document.createElement('script'); cm.type = 'text/javascript'; cm.async = true; cm.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + '//libs.coremetrics.com/eluminate.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(cm); }) (); </script> </body>
Avoid dropping link clicks
eluminate.js is a data collection library that needs to be embedded into your website for Acoustic Digital Analytics data collection to work. This Digital Analytics-hosted file provides JavaScript code defining a set of functions that can be called with appropriate parameter data to send data collection image requests to Digital Analytics. This file must be included in all pages implementing Digital Analytics.
Note: To make sure browsers with HTML anchor clicks are generating automatic Link Click tags in cases where the anchor navigates offsite or to a new document quickly, add the cm_UseCookie = true; statement to your tagging.
Warning: This statement applies only to version 4.23.200 or newer. If implemented in older versions, you will see tagging errors and failures in tags.
Example implementation:
US: <script> cm_UseCookie = true; </script> <script type="text/javascript" src="//libs.coremetrics.com/eluminate.js"></script> <script type="text/javascript"> cmSetClientID("59990000|<SiteID>",true,"data.coremetrics.com","127.0.0.1"); </script> EU: <script> cm_UseCookie = true; </script> <script type="text/javascript" src="//libs.de.coremetrics.com/eluminate.js"></script> <script type="text/javascript"> cmSetClientID("59990000|<SiteID>",true,"data.de.coremetrics.com","127.0.0.1"); </script>
Comments
0 comments
Article is closed for comments.