1. Home
  2. Support
  3. Analytics
  4. How to set up Google Analytics 4 For Tracking Affiliate Conversions

How to set up Google Analytics 4 For Tracking Affiliate Conversions

LinkClicky can not only send click data to Google Analytics 4 but also can send conversion data as well.

LinkClicky only supports Google Analytics 4 and does not support version 3 (AKA Universal Analytics).

The first step is to get the Measurement ID.

  1. In Google Analytics, on the bottom left side of the screen, select the gear icon.
  2. In the Property section, select Data Streams.
  3. Select the Web tab and click on the GA 4 property you want to send LinkClicky clicks and conversion data.
  4. Copy the MEASUREMENT ID.

Next, you want to create the secret key.

  1. In the Web stream details page you are currently on, select Measurement Protocol API secrets.
  2. If this is your first time visiting the page, you must accept the terms and conditions of using this part of Google’s service.
  3. Next, click the blue Create button.
  4. In the Nickname field, type in “LinkClicky”
  5. Press the Create button.
  6. Copy the Secret value for the entry you just created.

Now, you want to add the information to your LinkClicky control panel.

  1. Visit your LinkClicky dashboard and go to the section Integrations > Analytics.
  2. For the Google Analytics section, press on the blue Edit button.
  3. Add the MEASUREMENT ID and SECRET value into the JSON info listed below.
  4. Insert your JSON API info in the text field. When done, press the Save button.

JSON Information

[
{ "measurement_id": "[MEASUREMENTID]", "secret": "[SECRET]" }
]

It can take 12-24 hours before Google Analytics shows any LinkClicky events.

Setting Up Google Analytics Custom Definitions

Once data starts coming in, you’ll need to create two custom definitions in Google Analytics:

  • click_uri
  • referrer

To create these entries, please follow these steps:

  1. In Google Analytics, click on the Admin icon (gear icon) at the bottom left of your screen
  2. From the property menu, select Custom definitions.
  3. Then press the Create custom dimensions button.
  4. For the first entry, enter:
  • Dimension name: Click URI
  • Scope: Event
  • Description: (can leave blank)
  • Event parameter: click_uri
  1. Click Save when done.
  2. Repeat the process for Referrer and use these options.
  • Dimension name: Referrer
  • Scope: Event
  • Description: (can leave blank)
  • Event parameter: referrer
  1. Click Save when done.

This will allow you to use these two events within any Google Analytics report.

Updated on November 21, 2023

Was this article helpful?

Related Articles