User login

MetaTraffic 2.0 Boxshot

Google campaign tracking

Posted by paulbeestonuk [April 17, 2007]

Hi Chad,
I am running a Google Adwords campaign. I have set the "querystring name" in the configuration to be "gclid" and MT is picking up every Google click through as being part of the gclid campaign which (I guess!) is right, so when I go into the "campaigns" report I've got hundreds of Google ids listed.

What I would like to do (on my landing page) is something like this:
if request.querystring("gclid") <> "" then
set MT campaign = "Google" <<< this is the bit I need code for!
Response.Cookies("mt")("order") = request.querystring("gclid")
end if

What I would like to happen by doing this is to go into the campaign report and see the word "Google" just once, with a number by it and when I click on the detail icon it gives me hundreds of Google ids.

My question is: "can this be done?"
If it can please can I have the code to do it??!!
Thanks,
Paul.

Google campaign tracking

I see a problem in your code that you are trying to track the specific campaign ID as the order #, this is probably not going to work and cause you problems.

The easiest thing to do to change the campaign code to whatever you want (should there be a campaign to track), is to add a line of code on line 362 of the clsLog.asp file right after 'If strCampaignCode <> "" Then' line:

strCampaignCode = "google"

This will change the campaign code. Not sure about the action stuff other than its unlikely to work the way you have it implemented.