Google Analytics: Manual integration

Table of contents

    We propose you a very simple way to integrate your sales in Google Analytics with our Javascript tag but you have the possibility to create yourself the information in your affiliate links, this documentation will explain you how to do it.

    Creation of the Google Analytics Custom (GAC)

    To be able to connect the transaction to the session, we will need the Client ID from Google Analytics:

    Here is a pattern of a Client ID:

    Get the Client ID with Javascript or PHP, example of Client ID : 208027640.1582219202

    Now you have to create a Google Analytics Custom (GAC) that Strackr will be able to connect the transaction, here is the pattern of the custom:
    STKR + Strackr Tracking ID + Client ID base64 encoded + STKR

    Strackr Tracking ID = gSfhP
    Client ID = 208078940.1654819202 encoded in base64 => MjA4MDc4OTQwLjE2NTQ4MTkyMDI=

    According to the pattern : STKR + gSfhP + MjA4MDc4OTQwLjE2NTQ4MTkyMDI= + STKR

    The custom will be : STKRgSfhPMjA4MDc4OTQwLjE2NTQ4MTkyMDI=STKR

    And the affiliate link will be :

    Server side tracking:

    For server side tracking you can use the FPID cookie value, more information about this value on this page.

      Associate with your custom (optional)

      You may already use customs in your URLs and you want to add the GAC, you have 2 options:

      • use an other custom when the network allow it (example clickref2 with Awin)
      • concatenate your custom + the GAC (example mycustomSTKRgSfhPMjA4MDc4OTQwLjE2NTQ4MTkyMDI=STKR), we use STKR as delimiter at the beginning and the end of the GAC

      Add GAC to tracking links

      If you don't know what parameter to use as subid, use our Link Builder tool to create affiliate links and find the parameter to fill in with the Google Analytics Custom.

      Get started for free

      30 days free trial, no credit card required. Connect to your networks within minutes — and cancel anytime.

      Try for free

      Try the live demo

      Not quite ready to sign up? Take a test drive of the Strackr dashboard in our interactive live demo.

      See the live demo

      Still have questions?

      If there’s anything else you want to know about Strackr, contact us and we’ll be happy to fill you in.

      Contact us