Skip to content

Name ecommerce.items parameter names in purchase event GA4-compliant - #7

Open
wmdkfhartung wants to merge 424 commits into
vanilla-thunder:masterfrom
d3datadevelopment:master
Open

Name ecommerce.items parameter names in purchase event GA4-compliant#7
wmdkfhartung wants to merge 424 commits into
vanilla-thunder:masterfrom
d3datadevelopment:master

Conversation

@wmdkfhartung

Copy link
Copy Markdown

Currently some of the items parameter names in the purchase event are not named GA4 compliant. (https://github.com/d3datadevelopment/GoogleAnalytics4/blob/master/Application/views/blocks/checkout_s5.tpl)

So they are called "id, name, variant", although they should be called "item_id, item_name, item_variant". (See https://developers.google.com/analytics/devguides/collection/ga4/set-up-ecommerce?hl=de#add-event)

In the view_item, add_to_cart and view_cart event they are named correctly.

@d3datadev

Copy link
Copy Markdown

In coordination with the initial author of the module, we are currently continuing the development. Therefore, please feel free to use our fork (https://github.com/d3datadevelopment/GoogleAnalytics4/) for your collaboration.

The changes can be returned to the parent repository at any time. However, I would not expect this.

MaxBuhe01 and others added 29 commits June 27, 2023 09:53
# Conflicts:
#	Application/views/admin/de/module_options.php
#	Application/views/ga4/view_item_list.tpl
#	CHANGELOG.md
#	Modules/Core/ViewConfig.php
#	composer.json
#	metadata.php
MaxBuhe01 and others added 30 commits June 14, 2025 20:09
making sure that begin_checkout is always rolled out
- add item_brand to all events
- add option to use real category titles instead of url parts for item_categoryX
- add option to replace chars in item_categoryX values

thanks to Stefan Moisees@beffy@proudcommerce.com
if activated but no chars are given, it'll cut out the whole category-string
-> added char-check
by  Florian Palme <info@florian-palme.de>
since it doesn't work properly currently and requires a greater fixup
and removed unnecessary code/ try-outs
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

Successfully merging this pull request may close these issues.

7 participants