문제

I'm trying to set up a virtual pageview for an onclick event which generates a dialog box.

The problem I'm encountering is that the image link I'm trying to generate an event from doesn't seem to generate any kind of action when it's clicked upon (gtm.click or gtm.linkClick) even when other links/blank areas generate these events. To compound this, when using the debug tool, the dialog box generated by the click appears to remove all the html from the debug tool, however I can not see any network calls made to Google from the click.

Has anybody ecnountered this before?

도움이 되었습니까?

해결책

You say the there is already a click event to create a dialog box - it might be that this prevents the GTM event listener from firing (afaik GTM event listeners fail when you use "return false" instead of event.preventDefault() in your event handler).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top