Search

Searching DEVELOPERS

Export Page

By implementing the invokeTenCMSEvent JavaScript function you can open up the event tracking framework inside Amplience modules and Amplience module events into your website analytics implementation. 

<script type="text/javascript">

function invokeTenCMSEvent (object){

          console.log(object);

}
</script>

You can view the Amplience object definition in the console logs using the Developer tools in the Google Chrome Browser.  Example log below

Object

  1. accountID: "4"
  2. areaID: "c5d91e41-3390-4ee4-a242-1daef89444f8"
  3. element: "Player"
  4. eventName: "MV"
  5. moduleID: "37"
  6. parent: "Player"
  7. value: undefined
  8. versionID: "2"

Object

  1. accountID: "4"
  2. areaID: "c5d91e41-3390-4ee4-a242-1daef89444f8"
  3. element: null
  4. eventName: "SD"
  5. moduleID: "37"
  6. parent: "Carousel"
  7. value: 1
  8. versionID: "2"

It is possible to use this method to integrate Google Analytics with Amplience in a variety of ways, however, the example code in this document implements two specific use cases. 

  1. Tracking as Virtual Page Views
  2. Tracking as Google Events

These examples are by no means exhaustive or limited to these particular scenarios but are meant as a starting-point for integrating Amplience tracking in to your own Google Analytics implementation.