Third Party Analytics

Wednesday, November 23, 2016 @ 02:00

By: Scott Gillis, Lead Consultant – After hearing stories from Sitecore users and developers about the struggles that they have dealt with trying to manage third party tracking IDs (such as those used by Google Analytics) between environments and sites, and experiencing the headaches in my own development, the creation of this control was born.

These required third party tracking values usually are injected in one of two ways. The first method commonly used is to place the tracking code directly on the main layout. This is easy, as it ensures the tracking code shows for all pages and only loads once. The downfall is as source code migrates through environments or the organization grows and additional sites are added into Sitecore, the management of proper tracking IDs becomes a developer's challenge to maintain.

The second commonly employed method is the usage of a configuration file. A component is developed or code is placed directly in the main layout that reads the required ID values and even possibly some form of JavaScript snippets that are injected at page load. This method is a step in the right direction, but still requires the development team to be fully aware of the correct IDs for the environment and site. [This was my preferred method until I woke-up realizing there was a better way, which now sits in-front of you].

A simple content driven component that can be placed on pages as needed, allowing the content team to take ownership and manage the tracking IDs, keeping the right idea by environment and by sites.

What's Included in the GitHub repo

  • TDS project for Sitecore artifact syncing
  • Full source code to allow for extension with other third party applications
  • Sitecore package as found in _Documents folder
    1. If you are running Sitecore 7.2, 7.5, 8.0, or 8.1 install the Sitecore package 'Paragon.Sitecore.ThirdPartyAnalytics_8.0.zip'
    2. If you are running Sitecore 8.2+ install the 'Paragon.Sitecore.ThirdPartyAnalytics_8.2.zip'

Get the code with packages from GitHub at https://github.com/gillissm/Paragon.Sitecore.ThirdPartyAnalytics.

Image One

 

 

Scott Gillis, Lead Consultant at Paragon and 2017 Sitecore MVP, has been working with Sitecore for several years. He has a deep passion for helping clients leverage their content and data into powerful new capabilities in Sitecore and has produced successful outcomes as the technical lead on numerous, complex implementations. Recently, Scott has been focusing on helping these clients take advantage of the wealth of data collected by Sitecore Experience Analytics.