Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Test Lander Mass Campaign Pixel</title>
- <script type='text/javascript'>
- function pixelmc() {
- function getURLParameter(name) {
- return decodeURI(
- (RegExp(name + '=' + '(.*?)(&|$)').exec(location.search)||[,null])[1] || ''
- )
- }
- var nameOfGetParamWithCampaignKey = 'key';
- var campkey = getURLParameter( nameOfGetParamWithCampaignKey );
- var binom_domain = 'https://TRACKER.COM/';
- window.script = document.createElement('script');
- script.src = binom_domain+'click.php?key='+campkey+'&lp_type=pixel&'+window.location.search.substring(1)+'&to_lander=2';
- document.head.appendChild(script);
- function getUclick() {
- var m = document.cookie.match(new RegExp('(?:^|; )' + 'uclick' + '=([^;]*)'));
- var u = m ? decodeURIComponent(m[1]) : undefined;
- return u;
- }
- function fxOfLnks() {
- var u = getUclick();
- if (typeof u == 'undefined') return false;
- var l = document.getElementsByTagName('a');
- for (var i=0;i<l.length;i++){
- var href = l[i].getAttribute('href');
- if (href.indexOf('&event')!=-1 || href.indexOf('?event')!=-1 || href.indexOf('?lp=1')!=-1 || href.indexOf('?lp=data_upd')!=-1 || href.indexOf('?cnv_id=OPTIONAL')!=-1){
- l[i].href = href+'&uclick='+u;
- }
- }
- } ``
- script.addEventListener('load', function() {
- pixelmc_clientCode(window.tokens);
- });
- }
- function pixelmc_clientCode(tokens) {
- const block = document.querySelector('.uclick')
- if (block) {
- block.innerHTML = tokens.city;
- }
- }
- pixelmc();
- </script>
- </head>
- <body>
- <h2 class="city"></h2>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement