Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #771210

    I tried implementing this solution to track video views on a WordPress page (see url in the private content). The link to embed and track a YouTube video using Marketo is: http://developers.marketo.com/blog/send-view-data-from-a-youtube-video-to-marketo/

    When the WordPress page gets loaded, the video is not playing. After I click refresh a couple times, the video appears. Please advise.

    #771563

    Hey AV,

    It appears on first load on my end, please try clearing your browser cache and reload a few times.

    Best regards,
    Rikard

    #771812

    Hi Rikard,

    I know it does re appear after a couple of refresh. Just not on the first time on my end. I’ll have to keep testing it by asking others.

    #771815

    Can the code block element handle Vanilla JS? It does load on first refresh when I used the script in a plain html page.

    #773271

    It does not load still. I am using the most recent YouTube API code to load the video. I also disabled the plugins. This might be theme related. Did anyone have this problem before?

    • This reply was modified 7 years, 8 months ago by avwebmaster.
    #774973

    Hi,

    Sorry for the late reply. I can’t see the video either on the new page you posted in your last reply, and it looks like you removed the old one? I’ve never even heard of Marketo before reading this thread so I don’t know if I can be of much assistance unfortunately. Did you try reaching out to them for support? I think that be a better approach since they would know how their products communicates.

    Best regards,
    Rikard

    #776848

    HI Rikard,

    Thank you for your reply. I’ve added the WP page that’s not loading the YouTube video ID using their API. It works perfectly when you want to track a Marketo lead (by filling out a Marketo form with their tracking).

    My issue is that it does not call the video on page load but it does after a couple of refresh, clearing your cache. I even deactivated all my plugins, cache plugins and it still won’t work.

    I did some research here were code blocks do not render the js properly. The script consists of vanilla js and jQuery. Made sure to use jQuery instead of $. I even tried wp_enqueue_script – no luck. JS is loading fine on console. I just don’t understand why it takes a couple of refresh for it to show up.

    I’ve added the html and WP versions respectively.

    Appreciate your help. Thank you.

    #776874

    Hey!

    Can you please try the company support to help you?
    From what I understand, the element needs to load on different stage, but we can not be sure where exactly

    The best is to contact them to help you, as our support with third party is limited.

    Cheers!
    Basilis

    #776880

    Hi Basilis,
    Their tracking code is working except in the code block of this theme.

    #776950

    Okay, I probably did fix the issue by “compressing” the js inside the code block. It will not load if you have it cached. But I used this to compress the js https://jscompress.com/

    #778342

    Hi,
    Thank you for sharing your solution, we will close this now. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘YouTube API and Marketo not working in Enfold’ is closed to new replies.