passing url traking codes (3 posts)

  1. serge1808
    Posted 2 years ago #

    I use piwik analitics to track my website. when my google adwords ads link to my site they contain a tracking code eg...


    The problem is because wordpress seems to remove the url parameters the campaign doesn't get tracked properly eg.. it should tell me the keywords used when the user clicked on the add.

    so the question is what hook etc can i use to stop wordpress ignoring these parameters?

  2. halferdev
    Posted 2 years ago #

    Would you provide more info on how "wordpress seems to remove the url parameters"? I am not sure this is quite clear.

    Are you creating custom Piwik functionality, or are you using a WP plugin? I believe there are ready-made Piwik plugins, which should report your ad campaigns correctly.

  3. serge1808
    Posted 2 years ago #

    Hi im using the wp_piwik plugin but really all that plugin does is print a bit of javascript so that piwik can track it and its not causing any problems.

    The problem is when the add is clicked such as above wordpress removes the parameters eg... changes it to just virtualdrivinglessons.com therefor the parameters passed don't get tracked.
    I did find a way round this but i had to set up a separate duplicate page and it works fine it seems to be just the home page that removes these parameters its still a bit annoying i just want to know if there is a way to stop wordpress re-writing the url

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.