Skip to main content

Add Google Tags for thank you page and Add to Cart

More
2 years 9 months ago #357408 by verzevoul
-- HikaShop version -- : 4.7.2
-- Joomla version -- : 3.10.12

Hello!

I need to add Google Tags for Google Ads in Hikashop at the thank you page and to the add to cart button.
How do i do that?

Thank you

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #357410 by nicolas
Hi,

You will need to create view overrides where you can add the JS code provided by Google around script tags.
www.hikashop.com/support/documentation/1...-display.html#layout
For example, for the product page, you'll probably want to edit the show_default view file.
The following user(s) said Thank You: verzevoul

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #357437 by verzevoul
Hi,

The instructions say:

Install the event snippet on the conversion page. This is the page your customers reach on your website after they've completed a conversion — the "Thank you for your order" page, for example.

Open the HTML for the conversion page.
Copy the snippet below and paste it between the head tags (<head></head>) of the page, right after the global site tag.

So i don't really know how to do that in the view file.

Thank you

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #357439 by nicolas
Hi,

You can put the snippet at the beginning of the view file.

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #357560 by verzevoul
Hi, again.
Regarding hikashop ga4 plugin did you have any issues about “add to cart” event not sent to the data layer?
Would it be possible to test www.overcoat.gr for this?
Thank you

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #357568 by nicolas
Hi,

The "add to cart" event is not supported.
However, the plugin does support "view cart":
i.imgur.com/yCsBjAl.png

Please Log in or Create an account to join the conversation.

Time to create page: 0.199 seconds
Powered by Kunena Forum