P
P
PC_Like2020-08-01 21:33:48
Podcasts
PC_Like, 2020-08-01 21:33:48

How do I set up podcast tracking?

There is a site with nuxt.js components connected to google tag manager. The site has a podcast section. Tasks:
A) track the loading of the player (done);
B) track the playback of the podcast (start, but on click is problematic, since start and pause are one button and one element in the dom);
C) track listening for 3 seconds;
D) track the quantile (25%, 50%, 75%, and 100% listening to the podcast recording).
The podcast on the site is issued from the audio tag with id. Not stream. Linked file.
What was done:
A) I tried to bind to the timeupdate event: when clicking on the start, add to the audio event listener on timeupdate, which calculated the time and percentage of listening on the go. Accordingly, if a second is listened to, then sending the target that the player is running. 3 seconds - also sending. Well, I counted the quantile on the go. Presumably I am in conflict with the existing timeupdate handler in the nuxt component (I try to import my handler through the gtm container, because neither ftp nor other levers were delivered);
B) I tried to connect to the loading of the player and every second to break through the listened time and count the percentage. It also doesn't work.
Every time a new container is published to the site, a script error is regularly displayed (some component tries to poll the container and gets a 404).
Tell me what I'm doing wrong, is it really possible to do this and how? I will be glad for your comments
Ps: I started goals, events, etc. in analytics engines, if anything

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question