SOLVED

Tracking mp3 file plays on Marketo Landing Page

Go to solution
Highlighted

Re: Tracking mp3 file plays on Marketo Landing Page

Level 10 - Community Moderator

Re: Tracking mp3 file plays on Marketo Landing Page

Watch this screen capture and you can see the Click Link events are indeed being sent to Marketo:

audio_events.gif

Without further information I'd assume your sessions are still anonymous (as opposed to associated with a known lead). If you do a Smart List that's only for associated sessions. A Web Page Activity report for Anonymous visitors (on the Setup tab) reveals anon sessions.

Highlighted

Re: Tracking mp3 file plays on Marketo Landing Page

So I pulled hte Web Page Activity Report and I can see my name on the report, but when I go into my Activity Log, it isn't showing a clicked link activity... weird because it is obviously running correctly from your screen share, but I am unable to find that data in Marketo.

Screen Shot 2019-05-02 at 12.15.57 PM.png

Screen Shot 2019-05-02 at 12.16.23 PM.png

Highlighted
Level 10 - Community Moderator

Re: Tracking mp3 file plays on Marketo Landing Page

But run an Anonymous WPA and compare.

Highlighted

Re: Tracking mp3 file plays on Marketo Landing Page

Ok I did this, and still, no one on that list has an activity log that involves a link click, only the web page visit.

Screen Shot 2019-05-02 at 1.19.42 PM.png

Clicked into all these, and none have a "clicklink" activity. So odd.

Highlighted
Level 10 - Community Moderator

Re: Tracking mp3 file plays on Marketo Landing Page

OK, please try this:

document.querySelector("audio").addEventListener("play",function(e){

Munchkin.munchkinFunction("clickLink",{

href : this.currentSrc || this.src

});

});

P.S. It's actually better to use synthetic Visit Web Page, not Click Link, for reasons I'll explain in an upcoming blog post, but Click Link will be okay for your case.)

View solution in original post

Highlighted

Re: Tracking mp3 file plays on Marketo Landing Page

Tried that and tested using my profile and it still has no "clicklink" activity in the activity log. It logs my visit to the page in the activity log each time, but not the clicks on the play button.

Highlighted

Re: Tracking mp3 file plays on Marketo Landing Page

This is current code on the LP as it stands:

<center><audio controls="controls">

<source src="https://go.synack.com/rs/738-OEX-476/images/Synack Podcast - Executive Lunch - RSA 2019 - Episode 1 with Intro.mp3" type="audio/mpeg" />

Your browser does not support the audio element.

</audio></center>

<script>// <![CDATA[

// document.querySelector("audio").addEventListener("play",function(e){

Munchkin.munchkinFunction("clickLink",{

href : this.currentSrc || this.src

});

}); >

// ]]></script>

Highlighted
Level 10 - Community Moderator

Re: Tracking mp3 file plays on Marketo Landing Page

You have a syntax error now, so that's the direct problem.

pastedImage_2.png

pastedImage_1.png

See the extra comments and a closing > in there?

Highlighted

Re: Tracking mp3 file plays on Marketo Landing Page

Ok got that removed and still doesn't seem to be working it's never ending!