Expand my Community achievements bar.

SOLVED

Link call triggering before page view call

Avatar

Level 2

Hello,

There is a video on landing page which automatically gets played when the page gets loaded fully. I have configured page view call for page view and link call for video play. Since the video is playing automatically on page load, link call for video play is triggering before page view call. Is there any way to trigger page view call before link call?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@souravc454 Enters Viewport would trigger the call irrespective of video being played or not but I am assuming that is not an issue here. Your video seems to be above the fold so every time it enters the viewport when the page loads. If that is okay with you, you can trigger the video call with a direct call rule invocation using _satellite.track method within the pageview rule once you've triggered the pageview call. You can add another action at the end of the pageview rule which would have _satellite.track('<string name would go here>') and then this string can be the trigger for the video link tracking rule. Please makre sure you do a url check cause I am assuming this video would not be on all the pages else the pageview rule might trigger link tracking even on pages the video is not present.

 

Having mentioned the above, I would suggest a custom event instead of a enters viewport if that is a possibility. I am pretty sure in that scenario your link track would happen post pageview anyways.

 

Hope the above helps.

 

Cheers

View solution in original post

6 Replies

Avatar

Community Advisor

Hey @souravc454 

What is the trigger for the video link call ?

Avatar

Correct answer by
Community Advisor

@souravc454 Enters Viewport would trigger the call irrespective of video being played or not but I am assuming that is not an issue here. Your video seems to be above the fold so every time it enters the viewport when the page loads. If that is okay with you, you can trigger the video call with a direct call rule invocation using _satellite.track method within the pageview rule once you've triggered the pageview call. You can add another action at the end of the pageview rule which would have _satellite.track('<string name would go here>') and then this string can be the trigger for the video link tracking rule. Please makre sure you do a url check cause I am assuming this video would not be on all the pages else the pageview rule might trigger link tracking even on pages the video is not present.

 

Having mentioned the above, I would suggest a custom event instead of a enters viewport if that is a possibility. I am pretty sure in that scenario your link track would happen post pageview anyways.

 

Hope the above helps.

 

Cheers

Avatar

Community Advisor

Most welcome Sourav. Let us know if you face any issues.