Installing the Inline Manual Player Code and People tracking on your Site using Google Tag Manager is quick and simple. There are 2 things that have to be done: enabling Analytics within the Inline Manual portal and adding a code to your Google Tag Manager.


Enable Analytics:

  1. Login to the Inline Manual portal with your e-mail and password.

  2. Go to Sites and choose your desired Site.


  3. Go to the Analytics tab and enable Analytics.


Implement the code:

  1. In your Google Tag Manager, click add a new tag.


  2. Click Tag configuration and select Custom HTML.



  3. Insert the Inline Manual Player installation code along with the People tracking code. See the example of People tracking implementation below:

    <script>
      window.userObject = {
        uid: "1", // Only this field is mandatory
        email: "[email protected]",
        username: "johndoe",
        name: "John Doe",
        created: 1360610467,
        updated: 1433168312,
        roles: ["admin", "editor"],
        group: "Doe & Partners Inc.",
        plan: "Gold"
      }
    </script>
    
    <script>InlineManual("boot", userObject);</script><script>  window.userObject = {    uid: "1", // Only this field is mandatory    email: "[email protected]",    username: "johndoe",    name: "John Doe",    created: 1360610467,    updated: 1433168312,    roles: ["admin", "editor"],    group: "Doe & Partners Inc.",    plan: "Gold"  }</script><script>InlineManual("boot", userObject);</script>
    JavaScript


    Your application should replace the above values with the currently logged-in user id. The UID is the only field required and can be anything unique for the current user - a string, integer, number, e-mail etc.

  4. Replace the values in inlineManualTracking with your variables from Google Tag Manager. You can see what variables are available under the Variables menu in GTM.



  5. Configure Tag's Triggering.
  6. Save and publish.


Done!