Time to read: 7 min

The article covers the following topics:

Google Ads is an online advertising program. Through Google Ads, you can create online ads to reach people exactly when they're interested in the products and services that you offer.

There are different ways to launch campaigns in Google Ads through Affise:

  • Parallel tracking

  • Direct link tracking

  • Regular link tracking

The article contains three separate guides on how to set up Google Ads tracking.

Parallel tracking

Parallel tracking is an alternative to common tracking, which aim is, according to Google, speeding the load time. Google Ads claims all third-party services are to be compatible with parallel tracking. This is the guide on how Affise handles parallel tracking.

❗ Affiliate and advertiser are to be compatible with parallel tracking on their sides, to handle the parallel tracking.

Google Ads integration measures

Set up the integration in Google Ads:

1. Log in to your Google Ads account.

2. Click the Settings tab.

3. Click the campaign link for the Settings you would like to edit. In the example, you should click Website traffic-Search-1.

4. Click the Overview tab and then click Edit icon.

5. Сlick the Edit campaign button.

6. Click the Ads section and then click edit icon.

You will see the detailed Ads settings.

7. Under Final URL (e.g. landing page), enter the advertiser tracking link.

8. Go to the Ad URL options:

  • Under Tracking template, enter your tracking link (read how to find your tracking link in Affise here).

    You should use Tracking templates to set up tracking. When someone clicked the advertiser's product ad, your tracking template combines with your final URL to create your landing page URL.

  • Under Final URL Suffix, add: gclid={gclid}.

    Final URL Suffix - the suffix that the system adds to the end of your final URL.

  • Under Custom parameters, enter custom parameter if needed.

    Custom parameters are a kind of URL parameter that you can define. You can use them in your final URL and tracking template.

9. Click Done.

It might look like this:

The S2S parallel integration measures

In case of S2S parallel integration, the affiliate should set the Tracking URL on his side.

Once the system tracked {gclid} via Affise tracking URL and recorded it in Affise as ‘ref_id’, you’re supposed to receive it back through an advertiser’s postback the way below:


In case Affise clickid value is already associated with {gclid}, that’s ok not to receive both of them via advertiser’s postback. Affise will be able to fetch ‘gclid’ value through ‘clickid’ recorded and vice versa.

Pixel parallel integration measures

Pixel integration assumes a common image, js, or iframe integration when a pixel is supposed to be set on the advertiser’s Success page to retrieve {clickid} value for a conversion to be generated in Affise (read more about Pixel integration here).

The step above will still be accurate for a pixel integration with an advertiser while it requires an additional rule to be followed. In addition to common pixel setup on Success a page, the JS-script will have to be set on the advertiser’s Final page. As a rule, the Final page is the page that precedes the Success page. You can set it in Affise offer tracking URL.

Final page JS-script looks like this:


You can find it on your offer edit mode page.

Direct link tracking

This method enables you to track a user's clicks when they reach your landing page without requiring a click on an Affise Tracking Link.
The method uses Affise JavaScript (Direct) to remove the traditional redirect that comes with a tracking link. This improves the user's experience and allows affiliates to promote through channels that prohibit third-party links.

Google Ads integration measures

The beginning of the integration is the same as for Parallel tracking. Follow steps 1 - 6 of the guide, and then do the following:

1. Under Final URL (i.e. landing page), enter the advertiser tracking link. Add the pid parameter with the pid value instead of the {pid} macro to the link.

It might look like this:

2. Click Done.

Pixel integration measures

In case you don't use the tracking link, you should do the following:

  1. Allocate the following code on the offer's landing (target) page after the opening <body> tag:

    <script language="javascript" type="text/javascript">async function cid(){let e=new URLSearchParams(window.location.search).get("pid");return null===e?null:fetch("https://rocketcompany.g2afse.com/click?pid="+e+"&offer_id=144281&format=json").then(e=>e.json())}function sc(e){let c=new Date;c.setTime(c.getTime()+(365*24*60*60*1000)),document.cookie="affclick="+e+";expires="+c.toUTCString()+";path=/",localStorage.setItem("affclick",e)}(async()=>{const e=await cid();null!==e&&sc(e.clickid)})();</script>

  2. Put the &pid={pid} parameter to the URL of the landing page (enter the affiliate's pid instead of {pid} macro to define an affiliate). As you don't use an Affise tracking link, determination of the affiliate is required on this stage.

  3. Allocate the following code on the offer's success (thank you) page:

    <!--Offer Conversion: offer name -->
    <script language="javascript" type="text/javascript">var afoffer_id = 144281;</script>
    <script language="javascript" type="text/javascript" src="https://rocketcompany.g2afse.com/track.js"></script>
    <!-- End Offer Conversion -->

You can find the codes on the offer edit mode page:

Regular link tracking

This is the fastest and easiest way to set up Google Ads tracking. It requires only Affise tracking link in the Final URL.

Google Ads integration measures

The beginning of the integration is the same as for Parallel tracking. Follow steps 1 - 6 of the guide, and then do the following:

1. Under Final URL (i.e. landing page), enter the Affise tracking link.

It might look like this:

❗The tracking link you enter to the Final URL field should have a custom domain, not default Affise domain (not g2afse.com/*.go2affise.com).

2. Click Done.

You may find the following articles helpful:

If you feel like there are some questions left upon Google Ads tracking, feel free to address them to Affise Support Team via support@affise.com or your internal chat as long as to contact your dedicated Account Manager.

Did this answer your question?