• Hi developer,

    I think you should add gclid parameter to the preg_match function, too. This parameter will be added to the original link automatically when people run Google Ads.

    Or to create an option for this is better.

    “/utm_(source|medium|campaign|content|term)/i”

    Great plugin!

    Hoan.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Emre Vona

    (@emrevona)

    what is gclid? Can you send me a tutorial about it?

    Thread Starter hoandt

    (@hoandt)

    Hi Emre.

    It’s a Google parameter appended automatically to URLs when running Google Adwords.

    You can google any keywords and click on any ads on the search results to see what I mean (please click on rich ones :))

    I didn’t notice this until I clicked on my own ads and it took 10 seconds to load. I remove the ?gclid=123ab off my final url and everything’s ok again.

    Google uses it to pass information back and forth between Google AdWords and Google Analytics.

    Here is my solution:

    inc/cache.php

    I added an OR condition to remove_google_analytics_paramters function.

    preg_match(“/gclid/i”, $this->cacheFilePath)

    Of course, I’d prefer an option for this in next update.

    Hoan.

    Plugin Author Emre Vona

    (@emrevona)

    do you want to exclude cache when gclid exists on url? or do you want to show the cache when gclid exists on url?

    Thread Starter hoandt

    (@hoandt)

    It’s better show the cache version, because the content is the same.

    Google only wants the gclid value for their tracking system.

    Plugin Author Emre Vona

    (@emrevona)

    I added it into the feature request list.

    Hi, did this get implemented? Because Im getting some malformed URLs in woocommerce with your plugin on, Im guessing its related to this topic because they look like this:
    https://website.com/products/giftcards/?gclid=EAIaIQobChMI0sTnzeWs3wIV0IKyCh1YvAyIEAEYASAAEgK3APD_BwE&add-to-cart=16

    It looks like the gclid is being inserted “too early”, and therefore the page only reloads, as I dont think the browser knows how to handle this…
    I guess this might be because the add-to-cart, just attaches itself to the end of the current URL and still functions…

    Im deactivating your plugin for now, as this is a major issue for my client.

    • This reply was modified 5 years, 11 months ago by aecorn.
    Plugin Author Emre Vona

    (@emrevona)

    do you want to show the cached version when the url contains “gclid” query string?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘gclid paramenter included’ is closed to new replies.