-
AuthorPosts
-
April 3, 2017 at 4:14 pm #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.
April 4, 2017 at 7:43 am #771563Hey AV,
It appears on first load on my end, please try clearing your browser cache and reload a few times.
Best regards,
RikardApril 4, 2017 at 3:15 pm #771812Hi 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.
April 4, 2017 at 3:19 pm #771815Can the code block element handle Vanilla JS? It does load on first refresh when I used the script in a plain html page.
April 6, 2017 at 3:44 pm #773271It 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.
April 9, 2017 at 2:57 pm #774973Hi,
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,
RikardApril 12, 2017 at 7:19 pm #776848HI 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.
April 12, 2017 at 8:36 pm #776874Hey!
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 exactlyThe best is to contact them to help you, as our support with third party is limited.
Cheers!
BasilisApril 12, 2017 at 8:47 pm #776880Hi Basilis,
Their tracking code is working except in the code block of this theme.April 12, 2017 at 10:29 pm #776950Okay, 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/
April 16, 2017 at 2:57 am #778342 -
AuthorPosts
- The topic ‘YouTube API and Marketo not working in Enfold’ is closed to new replies.