Insert additional custom web analytics script on Nirvana

  • Author
    Posts
  • #36506
    Lindi

    Hello Support!

    We have a CRM database with a marketing automation add-on, Clickdimensions installed in it. Part of the marketing automation add-on is to gather web analytics and visitor information from our website. however to make this work, we must first insert the tracking script on our webpages.

    We are not sure how to do this. It does not replace the google analytics script. Here is some detail from the 3rd party provider on how to do it. How do we access the html code for our webpages in order to insert the script where they are suggesting we should?

    We only need to insert the first code snippet below. I am adding the other options available to us so that we could get those answered here now too if possible.

    ************** Instructions from marketing automation provider ******
    The following example contains the base tracking script that should be placed in all web pages you would like to be tracked by the ClickDimensions service. It is recommended to place the script at the bottom of your web pages before the closing BODY tag. If you use a global footer you may place the script within the global footer as long as the footer is inserted before the closing BODY tag of your pages. Please note that this script already contains your customer-specific Account Key so it is ready to use.

     <script type="text/javascript"> 
       var cdJsHost = (("https:" == document.location.protocol) ? "https://" : "http://"); 
       document.write(unescape("%3Cscript src='" + cdJsHost + "analytics-eu.clickdimensions.com/ts.js' type='text/javascript'%3E%3C/script%3E")); 
     </script> 
    
     <script type="text/javascript"> 
       var cdAnalytics = new clickdimensions.Analytics('analytics-eu.clickdimensions.com'); 
       cdAnalytics.setAccountKey('aoVmPli5M0Gdu8MPbWYYeg'); 
       cdAnalytics.setDomain('optimisecrm.com'); 
       cdAnalytics.setScore(typeof(cdScore) == "undefined" ? 0 : (cdScore == 0 ? null : cdScore)); 
       cdAnalytics.trackPage(); 
     </script> 

    //********************************* End *************************

    You can insert a script parameter to override the default score for specific web pages. Simply add the following three lines of script to the pages whose score you would like to override. The script should be placed before the base tracking script. Note that the score value can be negative by adding the “–“ symbol directly before the score value. For example, the javavscript could be “var cdScore = -25;”. You may have as many custom scored pages as you like.

    <script type="text/javascript"> 
       var cdScore = 5; 
     </script> 

    //*************END*****************//

    You can insert a script parameter to highlight specific pages in the Tracking Summary of the Profile pages. Simply add the following three lines of script to the pages you would like to highlight. The script should be placed before the base tracking script. These are referred to as ‘priority pages’.

     <script type="text/javascript"> 
       var cdPriority = true; 
     </script> 

    //*****************END********************//

    Page Views and Visits can be automatically associated with Campaign records in Microsoft CRM. Simply add the following three lines of script to the pages you would like to associate with CRM campaign records. Be sure and substitute the campaign code listed below (i.e. CMP-01005-ZBPTHS) with the CRM generated campaign code to which you would like the Page Views and Visits associated.

     <script type="text/javascript"> 
       var cdCampaignKey = 'CMP-01005-ZBPTHS'; 
     </script> 
    

    Thanks in advance! Looking forward to your response.

    Regards,
    Lindi

    #36544
    Zed
    Cryout Creations mastermind

    I recommend searching for a plugin that lets you insert code into your pages (in the desired locations). Manually editing files to add the code in is slightly more complicated.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Insert additional custom web analytics script on Nirvana’ is closed to new replies.