@peterbo opened this issue on February 24th 2016

Since https://github.com/piwik/piwik/issues/4261, Adwords / Doubleclick Referrers (or &gclid= parameter) are automatically attributed to Campaigns with default Name / Keyword.

However, this seems a bit out of line with the campaign logic. Usually, we recognize a campaign name and keyword by specific campaign parameters, which should be present in the target URL. This should also be the case when I drive traffic to my page via AdWords - when I tag the target URLs correctly, a campaign should be tracked - if not, no campaign should be tracked. Auto-attributing to default campaigns can cause a bit of confusion, even when this is a nice feature for the lower consumer market.

So I propose to a) not attribute a campaign based on the referrer information (doubleclick|googleads) or b) at least make that behavior configurable.

Let me know what you think about that and I'll send a PR.

Thank you & cheers Peter

@tsteur commented on February 24th 2016

ping @mattab

@mattab commented on March 15th 2016

Hi @peterbo

I made the change in Dec 2013 with the goal of measuring as many Google campaigns as possible. it is a bit of a "Magic feature" and a bit hidden, but it seems useful to track as campaign all Adwords campaigns that we can detect.

What is the use case where it is an issue to detect Adwords campaigns in the referrer, or detect as Adwords campaign any landing page url with a &gclib param? if there is legitimate use case (I'm sure there is since you need it) then +1 to propose a setting to disable this behavior (or alternatively, change the default behavior, but I think default behavior of tracking as many campaigns as possible may be useful for more users).

@mattab commented on March 15th 2016

Actually we don't currently detect &gclid= as Adwords Campaign although it's suggested/requested in https://github.com/piwik/piwik/issues/4468

@peterbo commented on March 15th 2016

Hi @mattab,

thanks! - Indeed the gclid param is not yet used to recognize campaigns.

Our use case is to track special interest groups on a larger scale (Piwik as SaaS running for many customers) and need to be in full control of the campaign logic, since only "normal" campaigns (paameter triggered campaigns) are relevant for the KPI calculation. For Piwik as a "plug&play" solution, the feature makes absolute sense, but for advanced users, this should be configurable.

If you agree, I'll send a PR.

@mattab commented on March 15th 2016

Sounds good to make this behaviour configurable, PR will be welcome!

Powered by GitHub Issue Mirror