Add Google Tags for thank you page and Add to Cart

  • Posts: 1032
  • Thank you received: 11
  • Hikashop Business
7 months 1 week ago #357408

-- 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

Attachments:

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

  • Posts: 82095
  • Thank you received: 13195
  • MODERATOR
7 months 1 week ago #357410

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.

  • Posts: 1032
  • Thank you received: 11
  • Hikashop Business
7 months 1 week ago #357437

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.

  • Posts: 82095
  • Thank you received: 13195
  • MODERATOR
7 months 1 week ago #357439

Hi,

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

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

  • Posts: 1032
  • Thank you received: 11
  • Hikashop Business
7 months 1 week ago #357560

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.

  • Posts: 82095
  • Thank you received: 13195
  • MODERATOR
7 months 1 week ago #357568

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.064 seconds
Powered by Kunena Forum