# Campaign integrations

# Choosing appropriate integration method

Traffic source Recommended integrations
Ad networks (Adsense, FB, etc) Campaign URL
Site builders (Wix, Squarespace, etc)
Static sites
PHP sites
WordPress site WP Plugin
QR code campaigns QR code
Banner rotations Banners block.
Email subscriptions Пиксель для Email

Examples

  • Passes all UTM labels
  • Incompatible with ad networks

The simplest way to integrate a campaign with any site. Copy the link code and paste to a site page. All necessary parameters will be sent automatically.

Example:

<span id="b95f5089-8280-0c00-8aeb-cbaa2e806fd2"></span>
<script type="application/javascript">
document.getElementById('b95f5089-8280-0c00-8aeb-cbaa2e806fd2').innerHTML = '<a href="**example.com/LNtLfH?se_referrer=' + encodeURIComponent(document.referrer) + '&default_keyword=' + encodeURIComponent(document.title) + '&'+window.location.search.replace('?', '&')+'">Link</a>';
</script>
1
2
3
4

# PHP-redirect

This PHP code immediately redirects visitors from the page.

# Iframe

  • Suitable for website builders
  • Suitable for showing landing pages
  • Suitable for showing banners
  • Compatible with many redirects
  • Scrollbar for large page sizes

Creates iframe block and loads the campaign inside it.

For showing a full-screen frame, select "Frameset" integration method.

Example:

<div id="af33487ac-1ec5-e4a5-4c78-74906e466ac4"></div>
<script type="application/javascript">
document.getElementById('af33487ac-1ec5-e4a5-4c78-74906e466ac4').innerHTML = '<iframe sandbox="allow-top-navigation allow-scripts allow-popups allow-forms" frameborder="0" width="" height="" src="**example.com/LNtLfH?se_referrer=' + encodeURIComponent(document.referrer) + '&default_keyword=' + encodeURIComponent(document.title) + '&'+window.location.search.replace('?', '&')+'&frm5fe47fd1c6030=frame5fe47fd1c6031"></iframe>'
</script>
1
2
3
4

# Script (async)

  • Compatible with website builders
  • Compatible with JS-redirect, Meta-redirect, Double-meta redirect
  • Doesn't block page rendering

This code creates a <script> element on the web page, so it can execute any JS code in the browser.

Example:

<span id="39565102-ee14-5a6a-d667-277bc71533a5"></span><script type="application/javascript">
var d=document;var s=d.createElement('script'); 
s.src='**example.com/LNtLfH?se_referrer=' + encodeURIComponent(document.referrer) + '&default_keyword=' + encodeURIComponent(document.title) + '&'+window.location.search.replace('?', '&')+'&frm5fe47fd1c6039=script5fe47fd1c603a&_cid=39565102-ee14-5a6a-d667-277bc71533a5'; 
if (document.currentScript) { 
document.currentScript.parentNode.insertBefore(s, document.currentScript);
} else {
d.getElementsByTagName('head')[0].appendChild(s);
}
if (document.location.protocol === 'https:' && '**example.com/LNtLfH?se_referrer=' + encodeURIComponent(document.referrer) + '&default_keyword=' + encodeURIComponent(document.title) + '&'+window.location.search.replace('?', '&')+'&frm5fe47fd1c6039=script5fe47fd1c603a'.indexOf('http:') === 0 ) {alert('The website works on HTTPS. The tracker must use HTTPS too.');}
</script>
1
2
3
4
5
6
7
8
9
10

# Script (sync)

  • Compatible with JS-redirect, Meta-redirect, Double-meta redirect
  • Chrome blocks the code if internet connection is slow

Works similar as "Script (async)", but uses window.write() for executing the JS-script.

Example:

<script type="application/javascript">
document.write('<script type="application/javascript" src="**example.com/LNtLfH?se_referrer=' + encodeURIComponent(document.referrer) + '&default_keyword=' + encodeURIComponent(document.title) + '&'+window.location.search.replace('?', '&')+'&frm5fe47fd1c6047=script5fe47fd1c6048"><' + '/script>');
</script>
1
2
3

# Static Frameset

  • Doesn't create scrollbars
  • Doesn't make extra redirects
  • Doesn't send UTM parameters from the URL
  • Tag `frameset` is deprecated in the HTML standard
  • Incompatible with website builders

Runs campaign in a frame.

Example:

<frameset rows="100%"><frame src="**example.com/LNtLfH?frm5fe47fd1c6015=frame5fe47fd1c6018"></frameset>
1

# Dynamic frameset

  • It doesn't create scrollbar
  • It doesn't make extra redirects
  • Send UTM parameters from the URL
  • Tag `frameset` is deprecated in the HTML standard
  • Incompatible with site builders

Creates frameset and sends all the UTM params to the tracker.

Example:

<script type="application/javascript">
document.write('<frameset rows="100%"><frame src="**example.com/LNtLfH?se_referrer=' + encodeURIComponent(document.referrer) + '&default_keyword=' + encodeURIComponent(document.title) + '&'+window.location.search.replace('?', '&')+'&frm5fe47fd1c6026=frame5fe47fd1c6027"></frameset>')
</script>
1
2
3

# QR-code

Creates a QR-code for your campaign.

Example:

# Pixel for Email

  • Give analytics of opening email letters
  • Email applications request a confirmation before loading the external images
  • Increase the risk of marking letter as Spam

Example:

<img height='1' width='1' alt='' src='**example.com/LNtLfH?frm5fe47fd1c606d=img5fe47fd1c606e'/>
1