Last active
July 27, 2019 21:50
-
-
Save timlenardo/b77c6c5486943315c2f3033ad4db7beb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var xhr = new XMLHttpRequest(); | |
var siteId = 'magiquiz'; | |
var split = window.location.href.split('?'); | |
var params = split.length > 1 ? split[1] : ""; | |
var url = split[0]; | |
if (params.indexOf("utm_source=snapchat-jf-slide") != -1) { | |
xhr.open('GET', 'https://plugco.in/add_external_page_view?url=' + encodeURI(url) + '&site_id=' + encodeURI(siteId) + '&' + params); | |
xhr.send(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment