Skip to content

Exclude twclid URL parameter by default #21452

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

Merged
merged 2 commits into from
Oct 30, 2023
Merged

Exclude twclid URL parameter by default #21452

merged 2 commits into from
Oct 30, 2023

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Oct 27, 2023

see https://business.twitter.com/en/help/campaign-measurement-and-analytics/conversion-tracking-for-websites.html

The X Pixel already automatically passes twclid from URL or first-party cookie. This parameter can be optionally used to force attribution to a certain ad click.

Just like the other ad related IDs we should exclude this one by default as well to reduce number of unique log_actions thus speeding up especially queries where a segment "action contains $value".

refs #19581

Review

see https://business.twitter.com/en/help/campaign-measurement-and-analytics/conversion-tracking-for-websites.html 

> The X Pixel already automatically passes twclid from URL or first-party cookie. This parameter can be optionally used to force attribution to a certain ad click.

Just like the other ad related IDs we should exclude this one by default as well to reduce number of unique log_actions.
@tsteur tsteur added the Needs Review PRs that need a code review label Oct 27, 2023
@sgiehl sgiehl added this to the 5.0.0 milestone Oct 30, 2023
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to add a test case here to avoid regressions:

public function getTestAdvertisingClickIdUrls()
{
return [
['https://www.example.com?gclid=1234', 'https://www.example.com'],
['https://www.example.com?fbclid=1234', 'https://www.example.com'],
['https://www.example.com?msclkid=1234', 'https://www.example.com'],
['https://www.example.com?yclid=1234', 'https://www.example.com'],
['https://www.example.com/path1?gclid=1234', 'https://www.example.com/path1'],
['https://www.example.com/path2?fbclid=1234', 'https://www.example.com/path2'],
['https://www.example.com/path3?msclkid=1234', 'https://www.example.com/path3'],
['https://www.example.com/path4?yclid=1234', 'https://www.example.com/path4'],
['https://www.example.com?random=1234', 'https://www.example.com?random=1234'],
['https://www.example.com?random=1234&yclid=qwerty', 'https://www.example.com?random=1234'],
];
}

@tsteur
Copy link
Member Author

tsteur commented Oct 30, 2023

Good idea @sgiehl Added a test case

@tsteur tsteur merged commit bff7cf0 into 5.x-dev Oct 30, 2023
@tsteur tsteur deleted the twclid branch October 30, 2023 22:16
caddoo pushed a commit that referenced this pull request Nov 5, 2023
* Exclude twclid URL parameter by default

see https://business.twitter.com/en/help/campaign-measurement-and-analytics/conversion-tracking-for-websites.html 

> The X Pixel already automatically passes twclid from URL or first-party cookie. This parameter can be optionally used to force attribution to a certain ad click.

Just like the other ad related IDs we should exclude this one by default as well to reduce number of unique log_actions.

* Add test case
caddoo pushed a commit that referenced this pull request Nov 5, 2023
* Exclude twclid URL parameter by default

see https://business.twitter.com/en/help/campaign-measurement-and-analytics/conversion-tracking-for-websites.html 

> The X Pixel already automatically passes twclid from URL or first-party cookie. This parameter can be optionally used to force attribution to a certain ad click.

Just like the other ad related IDs we should exclude this one by default as well to reduce number of unique log_actions.

* Add test case
caddoo pushed a commit that referenced this pull request Nov 5, 2023
* Exclude twclid URL parameter by default

see https://business.twitter.com/en/help/campaign-measurement-and-analytics/conversion-tracking-for-websites.html 

> The X Pixel already automatically passes twclid from URL or first-party cookie. This parameter can be optionally used to force attribution to a certain ad click.

Just like the other ad related IDs we should exclude this one by default as well to reduce number of unique log_actions.

* Add test case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Development

Successfully merging this pull request may close these issues.

2 participants