Skip to content

Instantly share code, notes, and snippets.

@sahanh
Created September 25, 2017 17:16
Show Gist options
  • Save sahanh/d868ab5e50b3e4139dc92a47c4cc9d39 to your computer and use it in GitHub Desktop.
Save sahanh/d868ab5e50b3e4139dc92a47c4cc9d39 to your computer and use it in GitHub Desktop.
<script type="application/javascript">
var options = {
autoplay: true, //to stop autoplay of the video, make this false
facebookPixelId: '<your fb pixel id>', //put your facebook pixel id here
customEvent: false, //do you want to track this as a custom event, put it here
height: '390', //height of the video within quotes
width: '640', //width of the video within quotes
videoId: 'M7lc1UVf-VE', //id of the video within quotes
injectionProgress: 50 //the progress of the video that needs to trigger fb pixel
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment