Home > Paid Traffic Sources > Search / PPC (Adwords, Bing, etc.)

How Do I Pass The GCLID through A Landing Page? (7)


06-09-2018 12:45 AM #1 ravioli (Member)
How Do I Pass The GCLID through A Landing Page?

When I was direct linking to an offer, I was able to pass the GCLID to the affiliate portal (ShareASale), thus seeing which keyword and ad was yielding the conversion.

But I was direct linking.

I used to have:

http://mytrackingdomain.com/offer.php?gclid='XXXXXXX' in the tracking parameter in AdWords.

This php file (here below) used to redirect to the affiliate offer. (direct linking)

QUESTION: how can I accomplish the same using a landing page?

Thanks!

php file:

<?php

if(isset($_GET[‘gclid’]))
{
$gclid = $_GET[‘gclid];
}
?>
<html>
<head>
<title>Loading...</title>
</head>
<body>

<META http-equiv=“refresh” content=“0; URL=http://OFFERPAGE.com&aff_sub=?gclid=<?php echo $gclid; ?>”>

</body>
</html>

@caurmen @mrgreen thanks!


06-09-2018 09:47 AM #2 gunnar (Member)

Hi ravioli,

thats easy,
remove the redirect between the body tags and just insert the relevant part of the lander there.
Insert this 'http://OFFERPAGE.com&aff_sub=?gclid=<?php echo $gclid; ?>' in the <a href of your CTA and you should be good to go.
Save it for example as lander1.php and call it with the same parameters.


06-09-2018 05:35 PM #3 ravioli (Member)

what's "the relevant part of the lander"?

can you give me a specific example of the code?

Thanks!


06-10-2018 06:55 AM #4 gunnar (Member)

Hi,

just the part between the body tags of your lander, but if there are scripts in the head you have to copy the references to your php file, too.


06-10-2018 02:10 PM #5 ravioli (Member)

I'm using clickfunnels as my lander and destination URL in Adwords.

1 - How can I track the conversion in AdWords via the tracking parameter??

Click image for larger version. 

Name:	Screen Shot 2018-06-10 at 7.07.40 AM.png 
Views:	26 
Size:	218.6 KB 
ID:	19047


2- Where do I put this code????


<?php

if(isset($_GET[‘gclid’]))
{
$gclid = $_GET[‘gclid];
}
?>
<html>
<head>
<title>Loading...</title>
</head>
<body>


</body>
</html>


06-12-2018 12:04 AM #6 Mr Baffoe (Veteran Member)

If you are using clickfunnels you can't insert php code in your landing page.

You'll have to grab the gclid with javascript and append it onto your offer links. Happy so share some code with you if you want.

But, to make your life easier, you may want to consider using a tracker for this.

For eg Prosper202 automatically tracks and saves the gclid with no extra code needed except for the landing page javascript. In the event that you are not able to place the adwords pixel on the conversion pagae, there is an adwords offline conversion csv export feature while will allow you to upload conversions directly into adwords.


10-03-2018 08:23 PM #7 eurosen (AMC Alumnus)

@ravioli, have you found a solution for this?


Home > Paid Traffic Sources > Search / PPC (Adwords, Bing, etc.)