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!
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.
what's "the relevant part of the lander"?
can you give me a specific example of the code?
Thanks!
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.
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??

2- Where do I put this code????
<?php
if(isset($_GET[‘gclid’]))
{
$gclid = $_GET[‘gclid];
}
?>
<html>
<head>
<title>Loading...</title>
</head>
<body>
</body>
</html>
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.
@ravioli, have you found a solution for this?