V
V
Viktor Viktorov2019-07-08 22:38:25
JavaScript
Viktor Viktorov, 2019-07-08 22:38:25

How to track the purpose of the transition to the product card in opencart?

Hello! I am setting up Yandex Goals for an OpenCart store and I have no idea how to track the goal of the transition to the product card. Tell me please.

PS I will also be grateful for a hint on how to track the completion of a successful order.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Viktorov, 2019-07-09
@CoolHeart

I decided this way: I
hung up the js click event handler on the link attribute selector that only links leading to the product page have. True, such a goal will not work if you open the page via a direct link, but in my case this is not necessary.

G
George, 2019-07-09
@zhora_pro

In the product page template, add a script that will pass the JS goal to the metric. Help
To track the order - a similar script to the order confirmation page (where "Order completed").
There is also a universal module for Yandex services https://kassa.yandex.ru/integration/opencart-yande...
After setting the metrics in it, it adds a code for tracking e-commerce to the necessary pages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question