Replace all gad_* parameters in VCL#40780
Replace all gad_* parameters in VCL#40780sprankhub wants to merge 3 commits intomagento:2.4-developfrom
Conversation
This makes sure that not only gad_source, but also gad_campaignid and all future gad tracking parameters are replaced. See https://support.google.com/google-ads/answer/16193746?hl=en
|
Hi @sprankhub. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
|
@magento create issue |
|
@magento run all tests |
|
Related: #40656 |
|
@sprankhub: please update them here as well: magento2/lib/internal/Magento/Framework/App/PageCache/Identifier.php Lines 72 to 96 in dbc23f7 (ideally, we should have a list defined in a single place, used both by the page cache module as by Varnish, but that's a bit of a refactor job) |
|
I updated the marketing parameters for the internal FPC as well. I agree that this should be unified, but I think this should go into another PR. |
Description (*)
This makes sure that not only
gad_source, but alsogad_campaignidand all futuregad_*tracking parameters are replaced. This way, the page will still be served by Varnish when a tracking parameter likegad_campaignidis used in the URL.See https://support.google.com/google-ads/answer/16193746?hl=en.
Related Pull Requests
#40656
Fixed Issues (if relevant)
Manual testing scenarios (*)
gad_campaignidlike https://www.shop.tld?gad_campaignid=abc.Questions or comments
Make sure to apply the VCL to your Varnish instance during your testing. It is not enough to just check out the code - you also need to apply the VCL during testing.
Contribution checklist (*)
Resolved issues: