We offer a straightforward method to integrate your sales into Google Analytics using our JavaScript tag. However, if you'd prefer, you can manually insert information into your affiliate links. This documentation will guide you through the process.
To associate the transaction with the session, you'll need the Client ID from Google Analytics:
Google Analytics Client ID Information
Below is an example of a Client ID:
Retrieve the Client ID using JavaScript or PHP. Here's an example of a Client ID: 208027640.1582219202
.
Next, you'll create a Google Analytics Custom (GAC) so that Strackr can link the transaction. Follow this format for the custom:
STKR + Strackr Tracking ID + base64 encoded Client ID + STKR
For instance:
Strackr Tracking ID: gSfhP
Client ID: 208078940.1654819202
, encoded in base64 becomes MjA4MDc4OTQwLjE2NTQ4MTkyMDI=
.
Combining these based on the format: STKR + gSfhP + MjA4MDc4OTQwLjE2NTQ4MTkyMDI= + STKR
Results in: STKRgSfhPMjA4MDc4OTQwLjE2NTQ4MTkyMDI=STKR
Your affiliate link will then look like this:
https://www.awin1.com/cread.php?awinmid=1111&awinaffid=1111&clickref=**STKRgSfhPMjA4MDc4OTQwLjE2NTQ4MTkyMDI=STKR**&ued=https%3A%2F%2Fwww.cdiscount.com%2F
Server-Side Tracking:
For server-side tracking, utilize the FPID cookie value. Learn more about this value here.
If you're already using custom parameters in your URLs and wish to add the GAC, there are two options:
clickref2
with Awin).mycustomSTKRgSfhPMjA4MDc4OTQwLjE2NTQ4MTkyMDI=STKR
). We utilize STKR
as a delimiter at the beginning and end of the GAC.If you're uncertain which parameter to use as a subid, turn to our Link Builder tool. It'll help you generate affiliate links and identify the right parameter for your Google Analytics Custom.
30 days free trial, no credit card required. Connect to your networks within minutes — and cancel anytime.
Not quite ready to sign up? Take a test drive of the Strackr dashboard in our interactive live demo.
If there’s anything else you want to know about Strackr, contact us and we’ll be happy to fill you in.