Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The upper/lower case of parameter values are lost, not expected for "Campaign IDs" parameters like mtm_cid or utm_id #27

Open
sesom42 opened this issue Oct 11, 2019 · 14 comments

Comments

@sesom42
Copy link

sesom42 commented Oct 11, 2019

We use pk_content to store the Google click ID. This variable is case sensitive. Unfortunately the plugin does not save the variable case sensitive and it becomes invalid.

@tsteur
Copy link
Member

tsteur commented Oct 14, 2019

I'm not sure what you mean by "it becomes invalid"?

@sesom42
Copy link
Author

sesom42 commented Oct 14, 2019

It will be invalid for Google. The variable is used to report offline results of campaigns back to Google. Google can't match the click if the variable isn't case-sensitive.

@tsteur
Copy link
Member

tsteur commented Oct 14, 2019

Sorry @sesom42 you will have to help me here a bit. I'm not so much into it and not fully understand. Which variable do you refer to? The pk_content URL parameter? How does Google expect the variable you refer to?

@diosmosis
Copy link
Member

@tsteur I might be wrong, but I think they mean the ID is something like AdFghakfCZZ..., but matomo stores/displays it as adfghakfczz, so if the user wants to get the ID to match it in Google, they can no longer do so (since the casing is lost).

@tsteur
Copy link
Member

tsteur commented Oct 15, 2019

I see. This might be done here: https://github.com/matomo-org/plugin-MarketingCampaignsReporting/blob/3.1.1/Campaign/CampaignDetector.php#L86

@sgiehl do you maybe remember why that is?

@tarasowski
Copy link

Hey guys, any news on that issue? The gclid are lowercased and invalid for Google Offline Conversions.

@tsteur
Copy link
Member

tsteur commented May 19, 2022

@sgiehl do you maybe know more here?

@sgiehl
Copy link
Member

sgiehl commented May 20, 2022

Actually I don't think there is a good reason for doing so. I suggested a possible solution here: #65 (comment)
Aren't even segments selected case insensitive, so it should not even be a problem here if the same campaign name ist stored in different cases...

@tarasowski
Copy link

@sgiehl / @tsteur guys, can you point me to a solution of how to export data for Google Offline Conversions.
I'm trying to store the gclids as mtm_cid but they are lowercased, so they cannot be imported into Google Ads.
Are there any other solutions you are aware of?

Danke im Voraus,
Dimi

@chopsol
Copy link
Contributor

chopsol commented May 20, 2022

I don't think there would be an alternative way except of patching the two files according to my pull request. I extended data collection with a parameter mtm_clid (not mtm_cid) for case-sensitive collection. I hoped, this PR would find a way into the core of MCR but for now, I'm patching up to 5 different matomo-instances every time an update of MCR is released.
I forget to mention the extension Advertising Conversion Export: https://plugins.matomo.org/AdvertisingConversionExport

@tarasowski
Copy link

@chopsol thanks Joachim!

@mattab
Copy link
Member

mattab commented Mar 12, 2023

As a follow up to #65, wouldn't it additionally make sense to apply "Case sensitive" to the whole of campaign_id = "mtm_cid,utm_id,mtm_clid" and not just mtm_clid?
Then we could:

  1. remove the mentions to mtm_clid in the inline help
  2. "deprecate" this parameter (instead, people would keep using mtm_cid or utm_id)

@mattab mattab changed the title The upper/lower case of parameter values are lost The upper/lower case of parameter values are lost, not expected for "Campaign IDs" parameters like mtm_cid or utm_id Mar 12, 2023
@sgiehl
Copy link
Member

sgiehl commented Mar 12, 2023

@mattab As discussed on the PR it would actually make sense to give the user the choice to decide if any of the campaign parameters should be handled case sensitive or not. I think I suggested that on the PR already. We imho should make all parameters case sensitive, so remove the strtolower in tracking. The reports could than have an additional option to group all values either case insensitive or not. I think that would give everyone the most flexibility. But that is something that needs to be applied to core and this plugin.

@9joshua
Copy link

9joshua commented Sep 11, 2024

A Cloud customer cannot needed to track a case-sensitive campaign ID for offline reporting, but due to forced lower-case letters, there was not way to match their data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants