<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Push notifications: Published Ordered Knowledge Base: : | MaxTraffic Knowledge Base</title>
    <description>Published Ordered Knowledge Base: Push notifications</description>
    <generator>Helprace RSS</generator>
    <link>https://help.maxtraffic.com/s1-general/knowledgebase/c8-push-notifications?format=rss</link>
    <item>
      <title>Updating visitor language, sending multi-language notifications</title>
      <description><![CDATA[<p>If your website uses one domain with several languages, and you want to send the same Web Push Notification to everyone, but with each subscriber receiving the message in his own language, read more below.</p>
<p>For each visitor you can manually set his language setting by customizing MaxTraffic tracking code. For example - if a visitor is viewing your website in Estonian language, you can set "Estonian" as his language, and later - if you send a Web Push notification to your subscribers and also add an Estonian translation - then this specific visitor will receive the Estonian version of your[_cuted_]</p>]]></description>
      <pubDate>Tue, 22 Dec 2020 11:22:40 +0000</pubDate>
      <link>https://help.maxtraffic.com/i100-updating-visitor-language-sending-multi-language-notifications</link>
      <guid>https://help.maxtraffic.com/i100-updating-visitor-language-sending-multi-language-notifications</guid>
      <author>Chris</author>
      <dc:creator>Chris</dc:creator>
      <content:encoded><![CDATA[<p>If your website uses one domain with several languages, and you want to send the same Web Push Notification to everyone, but with each subscriber receiving the message in his own language, read more below.</p>
<p>For each visitor you can manually set his language setting by customizing MaxTraffic tracking code. For example - if a visitor is viewing your website in Estonian language, you can set "Estonian" as his language, and later - if you send a Web Push notification to your subscribers and also add an Estonian translation - then this specific visitor will receive the Estonian version of your message.</p>
<h3>1. Get the language code</h3>
<p>To get started, please check <a href="https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes" rel="nofollow">https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes</a> - you must use the language code from column "639-1" for the language you want to set.</p>
<p>For example:</p>
<ul>
<li><b>lv</b> if visitor is using websites version in Latvian language</li>
<li><b>et</b> if visitor is using websites version in Estonian language </li>
<li><b>en</b> if visitor is using websites version in English language </li>
</ul>
<h3>2. Update tracking code</h3>
<p>The standard tracking code looks like this (where <b>123</b> is your website ID):</p>
<pre class="language-javascript"><code>&lt;script&gt;
window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
mt('create', 123);
&lt;/script&gt;
&lt;script async src="//cdn.mxapis.com/mt.js"&gt;&lt;/script&gt;</code></pre>
<p>If your website visitor is using Estonian version, you can update his language setting with this code:</p>
<pre class="language-javascript"><code>&lt;script&gt;
//set language setting to Estonian
mt("setLanguage", "et");
&lt;/script&gt;</code></pre>
<p>Language customization code has to be executed after the main tracking code, so both codes combined will look like this:</p>
<pre class="language-javascript"><code>&lt;script&gt;
window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
mt('create', 123);
&lt;/script&gt;
&lt;script async src="//cdn.mxapis.com/mt.js"&gt;&lt;/script&gt;

&lt;script&gt;
//set language setting to Estonian
mt("setLanguage", "et");
&lt;/script&gt;</code></pre>
<p>This language customization code can be executed in each pageview and if visitor switches between several languages (for example, from English to Estonian, then to German, then to Spanish, etc), then our system will save the last language used for that specific visitor.</p>
<p>And when you send a Push Notification - if you have added a translation for the language that was set to this specific visitor, then he will receive his language version of message, if not - then he will receive the default message.</p>
<h3>3. Send the same message in several languages at once</h3>
<p>When you are sending a new notification, you can click "Add Language" button:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/100/media/web_push_add_language.png" alt="" data-file="___chdfid_7745___"></p>
<p>Then select to which languages you want to translate it, for example - lets add Russian language:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/100/media/Screenshot%202020-02-02%2018.48.17.png" alt="" width="400" data-file="___chdfid_7746___"></p>
<p>And then you can translate the message in Russian language as well:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/100/media/Screenshot%202020-02-02%2018.55.15.png" alt="" data-file="___chdfid_7747___"></p>
<p>And when the message is sent - then for those subscribers, whose language setting will be set as "ru" (Russian), they will receive the Russian version of this message, but all other subscriber will receive the default version of your message.</p>
<p>Of course - if you have more than 2 languages in your website, then you can translate your message to as many languages as you like, just add more of them when you click "Add language". </p>
<h3>Why translate messages, if you can create visitor segments by country?</h3>
<p>Some of our clients are using custom segments that are based on visitors country. Of course, that can also be a way how to group subscribers and send them specific messages, but in our opinion there are several advantages of translating messages:</p>
<ol>
<li>For each language you can not only translate the content, but also set custom links and UTM tags. That way, for example, you can send the Russian speaking visitor directly to the Russian version of your website.</li>
<li>You don't have to create many segments based on visitor's country and send many messages one after another. The same message can be sent only once and with as many translations as you wish.</li>
<li>If you customize the tracking code and set the language setting for your subscribers - that will work more precise than grouping them by countries, because in 1 country many languages can be used, and there can be cases where an Estonian lives in Germany, etc. </li></ol>]]></content:encoded>
    </item>
    <item>
      <title>Integrating Push Notifications</title>
      <description><![CDATA[<p>Go to Settings &gt; Websites</p>
<p></p>
<p>Then click on Get Instructions</p>
<p></p>
<p>1. Install Tracking Code</p>
<p>Make sure that MaxTraffic tracking code is placed in all pages:</p>
<p></p>
<p>2. Upload Web Push File</p>
<p>Then click on "Upload Web Push File" and download sw-mt.js file: it needs to be placed on your website root folder. If you have copied the file to root folder, then you should be able to access the sw-mt.js file by opening https://www.website.com/sw-mt.js (just replace website.com with your own domain).</p>
<p></p>
<p>3. Verify you have an active Push Prompt</p>
<p>Go to Web Push &gt; Prompts, and make sure that you have at[_cuted_]</p>]]></description>
      <pubDate>Fri, 16 Aug 2019 12:56:39 +0000</pubDate>
      <link>https://help.maxtraffic.com/i53-integrating-push-notifications</link>
      <guid>https://help.maxtraffic.com/i53-integrating-push-notifications</guid>
      <author>Chris</author>
      <dc:creator>Chris</dc:creator>
      <content:encoded><![CDATA[<p>Go to <b>Settings &gt; <a href="https://e.maxtraffic.com/#/settings/websites">Websites</a></b></p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/53/media/settings_websites_push.png" alt="" width="171" height="405" data-file="___chdfid_13185___"></p>
<p>Then click on <b>Get Instructions</b></p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/53/media/settings_websites_get_instructions.png" alt="" data-file="___chdfid_13186___"></p>
<h3>1. Install Tracking Code</h3>
<p>Make sure that MaxTraffic tracking code is placed in all pages:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/53/media/install_tracking_code.png" alt="" data-file="___chdfid_13187___"></p>
<h3>2. Upload Web Push File</h3>
<p>Then click on "<b>Upload Web Push File</b>" and download sw-mt.js file: it needs to be placed on your website root folder. If you have copied the file to root folder, then you should be able to access the sw-mt.js file by opening https://www.website.com/sw-mt.js (just replace website.com with your own domain).</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/53/media/install_push_file.png" alt="" data-file="___chdfid_13188___"></p>
<h3>3. Verify you have an active Push Prompt</h3>
<p>Go to <b>Web Push &gt; <a href="https://e.maxtraffic.com/#/web-push/prompts">Prompts</a></b>, and make sure that you have at least one Prompt added and with status "Active". If you don't see any prompts, click on "Add prompt" to add one. </p>
<div><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/53/media/web_prompts.png" alt="" data-file="___chdfid_13189___"> </div>
<div> 
<h4>4. Check if your site has HTTPS?</h4>
<div>Native Push notifications will work only if your website by default is using HTTPS connection. If you enter website.com in browser, it should redirect to the HTTPS version of your site, so that URL starts with: https://</div>
<div> </div>
<div><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/53/media/https.png" alt="" data-file="___chdfid_13172___"></div>
<div> </div>
<div>If your website does not have HTTPS, please contact your IT team and ask them to enable it. These links might help:</div>
<ul>
<li><a href="http://www.howto-expert.com/how-to-get-https-setting-up-ssl-on-your-website/" rel="nofollow">www.howto-expert.com/how-to-get-https-setting-up-ssl-on-your-website/</a> </li>
<li><a href="https://support.google.com/webmasters/answer/6073543?hl=en" rel="nofollow">support.google.com/webmasters/answer/6073543?hl=en</a></li>
</ul>
</div>
<div>If your site supports HTTPS, then also make sure it is marked in <b>Settings &gt; Website Settings &gt; Web Push &gt; <a href="https://e.maxtraffic.com/#/settings/web-push/https">HTTPS</a></b></div>
<div> </div>
<div><b><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/53/media/https_setting.png" alt="" width="700" data-file="___chdfid_13179___"></b></div>
<div> </div>
<div>If your site does not have support for HTTPS, then you will need to uncheck the "My website has HTTPS" checkbox, and enter a subdomain that we will use to collect your Push subscribers:</div>
<div> </div>
<div><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/53/media/http.png" alt="" data-file="___chdfid_13180___"></div>
<h3>Any questions?</h3>
<p>Write to <a href="mailto:kristaps@maxtraffic.com," rel="nofollow">kristaps@maxtraffic.com,</a> Skype: kristaps_mors</p>]]></content:encoded>
    </item>
    <item>
      <title>Using tags for Web Push Notifications</title>
      <description><![CDATA[<p>Want to send Web Push Notifications only to some specific group of your website visitors? You can do that by using tags.  </p>
<p>To use this feature, you need to modify MaxTraffic tracking code. By default it looks like this:</p>
<p>If you want to add or remove tags, please use addTag or RemoveTag functions:</p>
<p>Correct use of addTag, removeTag</p>
<p>addTag/removeTag can be called once or many times, only new unique tags will be added. Tags are case insensitive, example: "Super User" is transformed to "super user" Tag max length is 36 chars. If tag length exceeds 36 chars, chars after 36[_cuted_]</p>]]></description>
      <pubDate>Fri, 15 Dec 2017 12:14:16 +0000</pubDate>
      <link>https://help.maxtraffic.com/i70-using-tags-for-web-push-notifications</link>
      <guid>https://help.maxtraffic.com/i70-using-tags-for-web-push-notifications</guid>
      <author>Chris</author>
      <dc:creator>Chris</dc:creator>
      <content:encoded><![CDATA[<p>Want to send Web Push Notifications only to some specific group of your website visitors? You can do that by using tags.  </p>
<p>To use this feature, you need to modify MaxTraffic tracking code. By default it looks like this:</p>
<pre class="language-javascript"><code>&lt;script&gt;
  window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
  mt('create', WEBSITE_ID);
&lt;/script&gt;
&lt;script async src='//cdn.mxapis.com/mt.js'&gt;&lt;/script&gt;</code></pre>
<p>If you want to add or remove tags, please use <b>addTag</b> or <b>RemoveTag</b> functions:</p>
<pre class="language-javascript"><code>&lt;script&gt;
  mt('addTag', 'one_tag');                                                                             
  mt('addTag', 'second tag');                                                                                      
  mt('addTag', 'thirdtag');                                                                           
  mt('removeTag', 'oldtag');
&lt;/script&gt;</code></pre>
<h3>Correct use of addTag, removeTag</h3>
<p>addTag/removeTag can be called once or many times, only new unique tags will be added.
<br>
<br>
Tags are case insensitive, example: "Super User" is transformed to "super user"
<br>
<br>
Tag max length is 36 chars. If tag length exceeds 36 chars, chars after 36 will be ignored, whitespaces counts as char.
<br>
example: "very long tag with more than thirty six characters" will be transformed to "very long tag with more than thirty"
<br>
<br>
Tag can contain whitespaces, but surrounding whitespace will be ingored. Example: " tag with whitespaces " is transformed to "tag with whitespaces"</p>
<h3>Example - creating tag for visitors, who have logged in</h3>
<p>If you want to tag visitors who have logged in at least once, then:</p>
<p>For visitors who have not logged in execute this tracking code version:</p>
<pre class="language-javascript"><code>&lt;script&gt;
  window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
  mt('create', WEBSITE_ID);
&lt;/script&gt;
&lt;script async src='//cdn.mxapis.com/mt.js'&gt;&lt;/script&gt;</code></pre>
<p>For visitors who have logged in, use this code:</p>
<pre class="language-javascript"><code>&lt;script&gt;
  window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
  mt('create', WEBSITE_ID);
  mt('addTag', 'Logged In');  
&lt;/script&gt;
&lt;script async src='//cdn.mxapis.com/mt.js'&gt;&lt;/script&gt;</code></pre>
<p><b>Note: </b>remember to replace WEBSITE_ID with your own website ID. </p>
<h3>Sending notifications </h3>
<p>After tag integration is done, when sending a new Push Notification, you will be able to include or exclude specific tags in Targeting section:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/70/media/MaxTraffic%202017-10-16%2013-18-31.png" alt="" width="500" data-file="___chdfid_1396___"></p>]]></content:encoded>
    </item>
    <item>
      <title>Using your own data (traits) to create custom segments</title>
      <description><![CDATA[<p>Want to send Web Push Notifications to segments that are created based on your own data about your clients? You can do that by using Traits and Javascript API. </p>
<p>Define user traits (custom fields) </p>
<p>1. In e.maxtraffic.com go to Settings &gt; Website Settings &gt; Trait mappings</p>
<p></p>
<p>2. Click on "Define new trait" button to add new user trait (custom field)</p>
<p></p>
<p>3. Fill out details about each user trait (custom field) that you want to use:</p>
<p></p>
<p>IMPORTANT: make sure to use correct data type and name field - after you have saved trait, later it will not be possible to make[_cuted_]</p>]]></description>
      <pubDate>Tue, 03 Mar 2020 11:16:28 +0000</pubDate>
      <link>https://help.maxtraffic.com/i73-using-your-own-data-traits-to-create-custom-segments</link>
      <guid>https://help.maxtraffic.com/i73-using-your-own-data-traits-to-create-custom-segments</guid>
      <author>Chris</author>
      <dc:creator>Chris</dc:creator>
      <content:encoded><![CDATA[<p>Want to send Web Push Notifications to segments that are created based on your own data about your clients? You can do that by using Traits and Javascript API. </p>
<h3>Define user traits (custom fields) </h3>
<p>1. In e.maxtraffic.com go to Settings &gt; Website Settings &gt; <a href="https://e.maxtraffic.com/#/settings/trait-mappings">Trait mappings</a></p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/73/media/trait_mapping.png" alt="" width="195" height="268" data-file="___chdfid_19825___"></p>
<p>2. Click on "Define new trait" button to add new user trait (custom field)</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/73/media/new_trait.png" alt="" width="500" data-file="___chdfid_19826___"></p>
<p>3. Fill out details about each user trait (custom field) that you want to use:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/73/media/traits.png" alt="" width="800" data-file="___chdfid_19828___"></p>
<p><b><span style="color: #ff0000;">IMPORTANT:</span></b> <span style="color: #ff0000;">make sure to use correct data type and name field - after you have saved trait, later it will not be possible to make changes to data type or name field. </span></p>
<p><span style="color: #000000;">4. Click Save</span></p>
<h3>Pass trait info (custom fields) to our tracking code </h3>
<p>For our platform to receive data from your system, you will need to modify MaxTraffic tracking code. By default it looks like this:</p>
<pre class="language-javascript"><code>&lt;script&gt;
  window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
  mt('create', WEBSITE_ID);
&lt;/script&gt;
&lt;script async src='//cdn.mxapis.com/mt.js'&gt;&lt;/script&gt;</code></pre>
<p>If you want to pass trait info (custom fields) to our platform and later use it in segments, then you need to add Javascript snippet for each trait you want to use. For example, if you want to pass email data to our platform, then you need to add following code:</p>
<pre class="language-javascript"><code>&lt;script&gt;
  mt('traits', {
    'email': 'peter@initech.com'
  })
&lt;/script&gt;</code></pre>
<p>Note: replace <i><a href="mailto:peter@initech.com" rel="nofollow">peter@initech.com</a></i> with actual email address of your client</p>
<p>So final code would look like this:</p>
<pre class="language-javascript"><code>//MaxTraffic tracking code
&lt;script&gt;
  window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
  mt('create', WEBSITE_ID);
&lt;/script&gt;
&lt;script async src='//cdn.mxapis.com/mt.js'&gt;&lt;/script&gt;

//Set trait, pass data about client email
&lt;script&gt;
  mt('traits', {
    'email': 'peter@initech.com'
  })
&lt;/script&gt;</code></pre>
<p>Note: replace <i><a href="mailto:peter@initech.com" rel="nofollow">peter@initech.com</a></i> with actual email address of your client</p>
<p><b><span style="color: #ff0000;">IMPORTANT:</span></b> <span style="color: #ff0000;">if you use Google Tag Manager or similar tool, make sure that both codes (tracking code and trait code) are loaded together as one tag OR set trait code is loaded only after tracking code is initialized.</span></p>
<h3><span style="color: #000000;">Example 1: counting number of times, when user has logged in</span></h3>
<p><span style="color: #000000;">If you would like to create a trait that shows, how many times a client has logged in, you could do it in following way:</span></p>
<p><span style="color: #000000;">1. Go to Settings &gt; Website Settings &gt; <a href="https://e.maxtraffic.com/#/settings/trait-mappings">Trait mappings</a>, click "Define new trait"</span></p>
<p><span style="color: #000000;">2. Decide about the Trait name, in this example we will call it "<b>logins</b>":</span></p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/73/media/Screenshot%202020-02-28%2013.27.51.png" alt="" width="550" data-file="___chdfid_19829___"></p>
<p><span style="color: #000000;">3. After a login event occurs in your website, trigger following code:</span></p>
<pre class="language-javascript"><code>&lt;script&gt;
// Increment field value by 1
mt(function(sdk) {
    var name = "logins"; // Trait name
    var value = 1; // Increment amount
    var traits = {};
    traits[name] = (sdk.visitor.traits[name] || 0) + value;
    mt("traits", traits);
});
&lt;/script&gt;</code></pre>
<h3><span style="color: #000000;">Example 2: adding new values to Array</span></h3>
<p><span style="color: #000000;">If you have a trait that uses "Array" as data type, and in some situation you want to add new values instead of replacing them, then you can use following code:</span></p>
<pre class="language-javascript"><code>&lt;script&gt;
mt(function(sdk) {
    var name = "topics"; // Set trait name
    var values = ["topic1"]; // Set new values to append
    var traits = {};
    traits[name] = (sdk.visitor.traits[name] || [])
        .concat(values)
        .filter(function(v, i, a) { return a.indexOf(v) === i });
    mt("traits", traits);
});
&lt;/script&gt;</code></pre>
<h3><span style="color: #000000;">Example 3: setting multiple traits with one request</span></h3>
<p><span style="color: #000000;">If you would like to save more detailed info about orders and later segment subscribers based on this data, you could create following traits:</span></p>
<ul>
<li><span style="color: #000000;">All Orders Value</span></li>
<li><span style="color: #000000;">Average Order Value</span></li>
<li><span style="color: #000000;">Last Order Date</span></li>
<li><span style="color: #000000;">Last Order Value</span></li>
<li><span style="color: #000000;">Order Count</span></li>
</ul>
<p><span style="color: #000000;">And it would look like this:</span></p>
<p><span style="color: #000000;"><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/73/media/Screenshot%202020-03-02%2011.03.12.png" alt="" data-file="___chdfid_19830___"></span></p>
<p><span style="color: #000000;">And then - after purchase is made, in "Thank You" page (conversion page) execute following code.</span></p>
<p><span style="color: #ff0000;"><span style="color: #000000;">Note: replace <b>{{TotalSum}}</b> with your own variable that contains the order value.</span></span></p>
<pre class="language-javascript"><code>&lt;script&gt;
mt(function(sdk) {
    var orderValue = parseFloat('{{TotalSum}}');
    var lastOrderDate = (new Date()).toISOString();
    var orderCount = (sdk.visitor.traits.order_count || 0) + 1;
    var allOrdersValue = (sdk.visitor.traits.all_orders_value || 0) + orderValue;
    var averageOrderValue = (allOrdersValue / orderCount);
    mt("traits", {
        last_order_value: orderValue,
        last_order_date: lastOrderDate,    
        order_count: orderCount,
        all_orders_value: allOrdersValue,
        average_order_value: averageOrderValue,
    });
});
&lt;/script&gt;</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Can I place Push file in custom folder?</title>
      <description><![CDATA[<p>By default we ask website owners to copy Push file to their main (root) folder, so that are available from:</p>
<p>How to place push file in custom folder?</p>
<p>For example, if you would like to place file in https://www.website.com/media/ folder or any different subfolder that is possible as well. In this case then you need to follow these instructions:</p>
<p>1. Upload file to server.</p>
<p>Copy the sw-mt.js file to your /media/ folder (or change /media/ to the folder you would like to use). So that they would be available from:</p>
<p> </p>
<p>2. Update the MaxTraffic tracking code.</p>
<p>If your website ID[_cuted_]</p>]]></description>
      <pubDate>Fri, 16 Aug 2019 12:16:18 +0000</pubDate>
      <link>https://help.maxtraffic.com/i83-can-i-place-push-file-in-custom-folder</link>
      <guid>https://help.maxtraffic.com/i83-can-i-place-push-file-in-custom-folder</guid>
      <author>Chris</author>
      <dc:creator>Chris</dc:creator>
      <content:encoded><![CDATA[<p>By default we ask website owners to copy Push file to their main (root) folder, so that are available from:</p>
<pre class="language-bash"><code>https://www.website.com/sw-mt.js</code></pre>
<h3>How to place push file in custom folder?</h3>
<p>For example, if you would like to place file in <b>https://www.website.com/media/</b> folder or any different subfolder that is possible as well. In this case then you need to follow these instructions:</p>
<h4>1. Upload file to server.</h4>
<div>Copy the sw-mt.js file to your /media/ folder (or change /media/ to the folder you would like to use). So that they would be available from:</div>
<div> </div>
<pre class="language-bash"><code>https://www.website.com/media/sw-mt.js</code></pre>
<h4>2. Update the MaxTraffic tracking code.</h4>
<div>If your website ID = 1234, then your tracking code by default would look like:</div>
<div>
<pre class="language-javascript"><code>&lt;script&gt;
  window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
  mt('create', 1234);
&lt;/script&gt;
&lt;script async src='//cdn.mxapis.com/mt.js'&gt;&lt;/script&gt;</code></pre>
<p>Please replace it with following tracking code:</p>
<pre class="language-javascript"><code>&lt;script&gt;
  window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
  mt('create', 1234, {
        worker: '/media/sw-mt.js'
});
&lt;/script&gt;
&lt;script async src='//cdn.mxapis.com/mt.js'&gt;&lt;/script&gt;</code></pre>
<p>Don't forget to adjust the tracking code to your website:</p>
<ul>
<li>Replace <b>1234</b> with your website ID</li>
<li>Replace <b>/media/</b> with the folder that you will use</li>
</ul>
</div>
<h4>3. Add custom header</h4>
<div>Ask your IT team to make sure, that service worker file (sw-mt.js) has this header:</div>
<div> </div>
<div><b>Service-Worker-Allowed: /</b></div>
<div> </div>
<div><b><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/64/media/header.png" alt="" width="500"></b></div>
<div> </div>
<div>If that is not the case - then your website server software (probably Apache or nginx) needs to be configured so that when visitors browser requests this <b>https://www.website.com/media/sw-mt.js</b> file, then this specific header is used.</div>
<div> </div>]]></content:encoded>
    </item>
    <item>
      <title>Enabling Web Push support for Safari</title>
      <description><![CDATA[<p>To enable Web Push support for Safari browser, please prepare following info and send it to support@maxtraffic.com:</p> <p>1. Website name</p> <p>Website name will be shown to visitor in the Prompt that asks for permission:</p> <p></p> <p>2. Website logo</p> <p>For Safari users you need to prepare website logo in 256x256px size. Image format should be PNG - it can be transparent as well.</p> <p>How will Web Push notification look like on Safari?</p> <p>Example of Safari message:</p>]]></description>
      <pubDate>Thu, 18 Apr 2019 12:32:35 +0000</pubDate>
      <link>https://help.maxtraffic.com/i76-enabling-web-push-support-for-safari</link>
      <guid>https://help.maxtraffic.com/i76-enabling-web-push-support-for-safari</guid>
      <author>Chris</author>
      <dc:creator>Chris</dc:creator>
      <content:encoded><![CDATA[<p>To enable Web Push support for Safari browser, please prepare following info and send it to <a href="mailto:support@maxtraffic.com" rel="nofollow">support@maxtraffic.com</a>:</p>
<h3>1. Website name</h3>
<p>Website name will be shown to visitor in the Prompt that asks for permission:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/76/media/website_name.png" alt="" data-file="___chdfid_16352___"></p>
<h3>2. Website logo</h3>
<p>For Safari users you need to prepare website logo in 256x256px size. Image format should be PNG - it can be transparent as well.</p>
<h1>How will Web Push notification look like on Safari?</h1>
<p>Example of Safari message:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/76/media/safari_example_web_push.png" alt="" data-file="___chdfid_16353___"></p>]]></content:encoded>
    </item>
    <item>
      <title>How to use API to send personalised Push Notifications?</title>
      <description><![CDATA[<p>1. Pass data about userID to MaxTraffic tracking code</p>
<p>If your website ID is 1234, then by default MaxTraffic tracking code will look like this:</p>
<p>To use API, you need to customize the MaxTraffic tracking code by setting userId parameter:</p>
<p>So if your website visitor is logged in and you know his userId, then tracking code will look like this:</p>
<p>Don't forget to replace 1234 with your website ID, and 123456789 with userId.</p>
<p>Note: if you don't know the userId (for example, user is not logged in), then use the default tracking code version (without setting the userId parameter).</p>
<p>2. Get[_cuted_]</p>]]></description>
      <pubDate>Mon, 16 Dec 2019 15:29:00 +0000</pubDate>
      <link>https://help.maxtraffic.com/i67-how-to-use-api-to-send-personalised-push-notifications</link>
      <guid>https://help.maxtraffic.com/i67-how-to-use-api-to-send-personalised-push-notifications</guid>
      <author>Chris</author>
      <dc:creator>Chris</dc:creator>
      <content:encoded><![CDATA[<h3>1. Pass data about userID to MaxTraffic tracking code</h3>
<p>If your website ID is <b>1234</b>, then by default MaxTraffic tracking code will look like this:</p>
<pre class="language-javascript"><code>&lt;script&gt;
    window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
    mt('create', 1234);
&lt;/script&gt;
&lt;script async src='//cdn.mxapis.com/mt.js'&gt;&lt;/script&gt;</code></pre>
<p>To use API, you need to customize the MaxTraffic tracking code by setting userId parameter:</p>
<pre class="language-javascript"><code>mt('set', 'userId', '123456789');</code></pre>
<p>So if your website visitor is logged in and you know his userId, then tracking code will look like this:</p>
<pre class="language-javascript"><code>&lt;script&gt;
    window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
    mt('create', 1234);
    mt('set', 'userId', '123456789');
&lt;/script&gt;
&lt;script async src='//cdn.mxapis.com/mt.js'&gt;&lt;/script&gt;</code></pre>
<p>Don't forget to replace <b>1234</b> with your <b>website ID</b>, and <b>123456789</b> with <b>userId</b>.</p>
<p><b>Note:</b> if you don't know the userId (for example, user is not logged in), then use the default tracking code version (without setting the userId parameter).</p>
<h3>2. Get your API key</h3>
<p>You can get your API key in Settings &gt; Website Settings &gt; Web Push &gt; <a href="https://e.maxtraffic.com/#/settings/web-push/api">API</a>:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/67/media/web_push_api.png" alt="" data-file="___chdfid_5595___"></p>
<h3>3. Use REST API</h3>
<p>Check out documentation here: <a href="http://dev.maxtraffic.com" target="_blank" rel="nofollow">dev.maxtraffic.com</a></p>
<p>Right now API has following features:</p>
<ul>
<li>check if a specific user has subscribed to notifications </li>
<li>send personalised notification to 1 or more users by specifying their userID's.</li>
<li>get info about visitor traits </li>
<li>add/update info about visitor traits </li>
</ul>
<p>If something is not clear, please write to <a href="mailto:support@maxtraffic.com" rel="nofollow">support@maxtraffic.com</a> </p>]]></content:encoded>
    </item>
    <item>
      <title>How to check if visitor has subscribed to push notifications?</title>
      <description><![CDATA[<p>With MaxTraffic you can create special offers (daily bonus, promotions with additional discounts, etc.) for those users who have subscribed to Web Push Notifications. That gives an additional incentive for visitors to subscribe to your sites Push Notifications, and you will be able to reach much wider audience when sending them.</p>
<p>To get started, you need to modify MaxTraffic tracking script:</p>
<p>1. Passing userId to MaxTraffic</p>
<p>By default your tracking script will look like this (we use 999 as your website ID in this example):</p>
<p>If a visitor has not logged in your system, then you need to keep the[_cuted_]</p>]]></description>
      <pubDate>Wed, 12 Jul 2017 12:40:26 +0000</pubDate>
      <link>https://help.maxtraffic.com/i69-how-to-check-if-visitor-has-subscribed-to-push-notifications</link>
      <guid>https://help.maxtraffic.com/i69-how-to-check-if-visitor-has-subscribed-to-push-notifications</guid>
      <author>Chris</author>
      <dc:creator>Chris</dc:creator>
      <content:encoded><![CDATA[<p>With MaxTraffic you can create special offers (daily bonus, promotions with additional discounts, etc.) for those users who have subscribed to Web Push Notifications. That gives an additional incentive for visitors to subscribe to your sites Push Notifications, and you will be able to reach much wider audience when sending them.</p>
<p>To get started, you need to modify MaxTraffic tracking script:</p>
<h3>1. Passing userId to MaxTraffic</h3>
<p>By default your tracking script will look like this (we use <b>999</b> as your website ID in this example):</p>
<pre class="language-javascript"><code>&lt;script&gt;
    window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
    mt('create', 999);
&lt;/script&gt;
&lt;script async src='//cdn.mxapis.com/mt.js'&gt;&lt;/script&gt;</code></pre>
<p>If a visitor <b>has not logged in</b> your system, then you need to keep the same tracking code as above.</p>
<p>BUT - if a visitor <b>has logged in</b> your system, and you know his unique user ID, then you need to add additional line to tracking script, sending us info about his userId (in this example userId is <span style="text-decoration: underline;">123456789</span>):</p>
<pre class="language-javascript"><code>&lt;script&gt;
    window.mt=window.mt||function(){(mt.q=mt.q||[]).push(arguments)};mt.l=+new Date;
    mt('create', 999);
    mt('set', 'userId', '123456789');
&lt;/script&gt;
&lt;script async src='//cdn.mxapis.com/mt.js'&gt;&lt;/script&gt;</code></pre>
<p><b>Note:</b> make sure that instead of 999 you are using your own website ID in the tracking script.</p>
<h3>2. Get your API key</h3>
<p>To use API, you first need to get your API key in <a href="https://e.maxtraffic.com/partner/push-notifications#/settings">e.maxtraffic.com &gt; Push Notifications &gt; Settings &gt; API.</a></p>
<h3>3. Checking if user has subscribed to notifications</h3>
<p>After you have done modifications to tracking script, you can send server-side requests to our REST API and get info about any user to see if he has subscribed to Web Push Notifications or not. </p>
<p>To get this info, see documentation here: <a href="http://dev.maxtraffic.com/#operation/getVisitorById" rel="nofollow">http://dev.maxtraffic.com/#operation/getVisitorById</a></p>
<h3>4. Special offers</h3>
<p>Now that you know who has subscribed, you can save this info in your own user database and depending on status - either offer user some special promotions or bonuses, or inform him - that he needs to subscribe to notifications to receive them.</p>]]></content:encoded>
    </item>
    <item>
      <title>How to send Cart Abandonment notifications?</title>
      <description><![CDATA[<p>1. Save info about products added to cart</p>
<p>When a visitor adds a product to shopping cart, you need to save MaxTraffic Visitor ID, product ID and date in your own database. You can create a table shopping_cart_tmp with 3 columns: MtVisitorId, ProductId, date</p>
<p></p>
<p>To get MaxTraffic Visitor ID, use following script:</p>
<p>So when someone adds a product to cart, you need to execute script similar to this one:</p>
<p>2. Delete info from DB, if product is removed from cart</p>
<p>If visitor removes any product from his shopping cart, you also need to delete it from shopping_cart_tmp table.</p>
<p>3. Delete info[_cuted_]</p>]]></description>
      <pubDate>Wed, 21 Aug 2019 16:34:31 +0000</pubDate>
      <link>https://help.maxtraffic.com/i71-how-to-send-cart-abandonment-notifications</link>
      <guid>https://help.maxtraffic.com/i71-how-to-send-cart-abandonment-notifications</guid>
      <author>Chris</author>
      <dc:creator>Chris</dc:creator>
      <content:encoded><![CDATA[<h3>1. Save info about products added to cart</h3>
<p>When a visitor adds a product to shopping cart, you need to save MaxTraffic Visitor ID, product ID and date in your own database. You can create a table <b>shopping_cart_tmp</b> with 3 columns: <i>MtVisitorId</i>, <i>ProductId, date</i></p>
<p><i><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/71/media/table.png" alt="" width="500" data-file="___chdfid_8585___"></i></p>
<p>To get MaxTraffic Visitor ID, use following script:</p>
<pre class="language-javascript"><code>&lt;script type="text/javascript"&gt;
mt(function(mtsdk) {
  // Get push notification permission status
  // "unsupported" push notifications not supported
  // "default" visitor is ready to receive permission request to allow/block push
  // "granted" visitor has allowed push notifications
  // "denied" visitor has blocked push notifications
  if(mtsdk.pushNotificationPermission == "granted") {
    //visitor has granted permission to receive push notifications

    //get visitors ID
    console.log(mtsdk.visitorId);

  }
});
&lt;/script&gt;</code></pre>
<p>So when someone adds a product to cart, you need to execute script similar to this one:</p>
<pre class="language-javascript"><code>&lt;script type="text/javascript"&gt;
mt(function(mtsdk) {
  if(mtsdk.pushNotificationPermission == "granted") {
    //get Maxtraffic Visitor ID
    MtVisitorId = mtsdk.visitorId;

    //get product id
    ProductId = ...

    //add info to DB
    ...

  }
});
&lt;/script&gt;</code></pre>
<h3>2. Delete info from DB, if product is removed from cart</h3>
<p>If visitor removes any product from his shopping cart, you also need to delete it from <b>shopping_cart_tmp</b> table.</p>
<h3>3. Delete info from DB, if purchase is completed</h3>
<p>If visitor completes the purchase, then also delete all rows from <b>shopping_cart_tmp</b> table that are related to the specific visitor.</p>
<h3>4. Create a Cron task to send Cart Abandonment notifications</h3>
<p>Create a cron task that executes once per minute and checks - if there are any users who have not finished purchases and date is older than 1 hour:</p>
<pre class="language-sql"><code>SELECT DISTINCT(MtVisitorId) FROM shopping_cart_tmp
WHERE DATE_ADD(date, INTERVAL 1 HOUR) &lt; NOW()</code></pre>
<p>Then use MaxTraffic's REST API to send out a Push Notification to them. More info how to send a message with our REST API, is available here: <a href="http://dev.maxtraffic.com/#operation/addNotification" target="_blank" rel="nofollow">dev.maxtraffic.com/#operation/addNotification</a></p>
<p>To send notification using MaxTraffic user ID (mtsdk.visitorId), you need to use parameter<b> to_uids</b></p>
<p><b><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/71/media/product_send_msg.png" alt="" data-file="___chdfid_8586___"></b></p>
<p><b>And after you have sent the notifications, delete all the rows you just selected (so you don't send notifications to the same visitors again next time the cron task is executed):</b></p>
<pre class="language-sql"><code>DELETE FROM shopping_cart_tmp
WHERE DATE_ADD(date, INTERVAL 1 HOUR) &lt; NOW()</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Sending Push Notifications when products become available</title>
      <description><![CDATA[<p>If your website has products that sometimes are out of stock, you can send a Push Notification to visitors who were interested in the specific product and asked to inform them when it becomes available.</p>
<p>1. Check if browser supports Web Push?</p>
<p>You need to verify if visitor's browser supports Web Push Notifications. If it does not, then you can ask him to use a different browser (Chrome or Firefox, for example), or just hide this feature. To check it, you can use our library: </p>
<p>2. Get visitors ID</p>
<p>To subscribe visitor to your product updates, you first need to get his[_cuted_]</p>]]></description>
      <pubDate>Thu, 17 Aug 2017 12:58:41 +0000</pubDate>
      <link>https://help.maxtraffic.com/i68-sending-push-notifications-when-products-become-available</link>
      <guid>https://help.maxtraffic.com/i68-sending-push-notifications-when-products-become-available</guid>
      <author>Chris</author>
      <dc:creator>Chris</dc:creator>
      <content:encoded><![CDATA[<p>If your website has products that sometimes are out of stock, you can send a Push Notification to visitors who were interested in the specific product and asked to inform them when it becomes available.</p>
<h3>1. Check if browser supports Web Push?</h3>
<p>You need to verify if visitor's browser supports Web Push Notifications. If it does not, then you can ask him to use a different browser (Chrome or Firefox, for example), or just hide this feature. To check it, you can use our library: </p>
<pre class="language-javascript"><code>&lt;script type="text/javascript"&gt;
mt(function(mtsdk) {
  // Get push notification permission status
  // "unsupported" push notifications not supported
  // "default" visitor is ready to receive permission request to allow/block push 
  // "granted" visitor has allowed push notifications
  // "denied" visitor has blocked push notifications
  if(mtsdk.pushNotificationPermission == "unsupported") {
    //visitor is using browser that does not support browser notifications
    //we recommend to either disable feature or ask them to use a different browser
  }
});
&lt;/script&gt;</code></pre>
<h3>2. Get visitors ID</h3>
<p>To subscribe visitor to your product updates, you first need to get his unique ID from MaxTraffic's API. </p>
<pre class="language-javascript"><code>&lt;script type="text/javascript"&gt;
mt(function(mtsdk) {
  // Get visitor unique Id
  // To test it, display it in Console
  console.log(mtsdk.visitorId);
});
&lt;/script&gt;  </code></pre>
<h3>3. Check if visitor has granted permission to receive browser push notifications</h3>
<pre class="language-javascript"><code>&lt;script type="text/javascript"&gt;
mt(function(mtsdk) {
  // Get push notification permission status
  // "unsupported" push notifications not supported
  // "default" visitor is ready to receive permission request to allow/block push
  // "granted" visitor has allowed push notifications
  // "denied" visitor has blocked push notifications
  if(mtsdk.pushNotificationPermission == "granted") {
    //visitor has granted permission to receive push notifications
  }
});
&lt;/script&gt;</code></pre>
<h4>3.1. If user has denied permission to receive web push notifications</h4>
<p>Show him instruction how to grant permission for your site:</p>
<pre class="language-javascript"><code>&lt;script type="text/javascript"&gt;
mt(function(mtsdk) {
  // Get push notification permission status
  // "unsupported" push notifications not supported
  // "default" visitor is ready to receive permission request to allow/block push
  // "granted" visitor has allowed push notifications
  // "denied" visitor has blocked push notifications
  if(mtsdk.pushNotificationPermission == "denied") {
    //visitor has denied permission to send him Push Notifications
    //show him instruction how to subscribe
    mtsdk.togglePushNotificationBlockedDialog();
  }
});
&lt;/script&gt;</code></pre>
<p>If you execute <i>mtsdk.togglePushNotificationBlockedDialog()</i>, it will activate this instruction on visitor's screen:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/68/media/instruction.png" alt="" width="300" data-file="___chdfid_19834___"></p>
<h3>4. Check if visitor has subscribed to Product Updates</h3>
<p>You need to check this in your own database. We would recommend to create a data table with 2 columns: user_id, product_id</p>
<p>If user has already subscribed to Product Updates, you can show it to him and also let him unsubscribe if he wants.</p>
<p>If he unsubscribes, then remove him from your data table. </p>
<h3>5. Subscribing visitor to Product Updates</h3>
<p>If user wants to receive product updates, then just save his visitorId + productId in your own database.</p>
<pre class="language-javascript"><code>&lt;script type="text/javascript"&gt;
mt(function(mtsdk) {
  // Get push notification permission status
  // "unsupported" push notifications not supported
  // "default" visitor is ready to receive permission request to allow/block push
  // "granted" visitor has allowed push notifications
  // "denied" visitor has blocked push notifications
  if(mtsdk.pushNotificationPermission == "granted") {
    //visitor has granted permission to receive web push 
    //if visitor clicks on button to receive product updates
    //then add his info to your own database
  }
});
&lt;/script&gt;</code></pre>
<h3>6. Get your MaxTraffic REST API key</h3>
<p>To use REST API, you first need to get your REST API key in <a href="https://e.maxtraffic.com/partner/push-notifications#/settings">e.maxtraffic.com &gt; Push Notifications &gt; Settings &gt; API.</a></p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/68/media/api_key.png" alt="" width="500" data-file="___chdfid_19835___"></p>
<h3>7. Sending info about Product Updates</h3>
<p>When a product that was out of stock, becomes available again, then you can do a query on your own database and select all visitors who subscribed to this specific product updates.</p>
<p>Then use MaxTraffic's REST API to send out a Push Notification to them. More info how to send a message with our REST API, is available here: <a href="http://dev.maxtraffic.com/#operation/addNotification" target="_blank" rel="nofollow">dev.maxtraffic.com/#operation/addNotification</a></p>
<p>To send notification using MaxTraffic user ID (mtsdk.visitorId), you need to use parameter<b> to_uids</b></p>
<p><b><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/68/media/product_send_msg.png" alt="" data-file="___chdfid_19836___"></b></p>]]></content:encoded>
    </item>
    <item>
      <title>Importing Web Push subscribers</title>
      <description><![CDATA[<p class="header-scroll">Due to the way Web Push works, you cannot migrate data from one service to another. We suggest that you install MaxTraffic onto your site. Then send a message to your existing subscribers to get them to come back to your website.</p>
<p class="header-scroll">Any user who subscribed before will be automatically resubscribed when they revisit your site with MaxTraffic installed.</p>
<p class="header-scroll">How will this transition work?</p>
<p>You need to remove old service provider codes - stops you from collecting database there but still allows to send messages to existing subscribers. Add MaxTraffic codes - will allow you to start collecting subscribers into MaxTraffic and send[_cuted_]</p>]]></description>
      <pubDate>Tue, 28 Feb 2017 12:49:56 +0000</pubDate>
      <link>https://help.maxtraffic.com/i65-importing-web-push-subscribers</link>
      <guid>https://help.maxtraffic.com/i65-importing-web-push-subscribers</guid>
      <author>Chris</author>
      <dc:creator>Chris</dc:creator>
      <content:encoded><![CDATA[<p class="header-scroll">Due to the way Web Push works, you cannot migrate data from one service to another. We suggest that you install MaxTraffic onto your site. Then send a message to your existing subscribers to get them to come back to your website.</p>
<p class="header-scroll">Any user who subscribed before will be automatically resubscribed when they revisit your site with MaxTraffic installed.</p>
<p class="header-scroll"><b>How will this transition work?</b></p>
<div>
<ol>
<li>You need to remove old service provider codes - stops you from collecting database there but still allows to send messages to existing subscribers.</li>
<li>Add MaxTraffic codes - will allow you to start collecting subscribers into MaxTraffic and send messages to them.</li>
<li>For a transition period you would need to use both platforms with mirrored messages to achieve best results. </li></ol></div>]]></content:encoded>
    </item>
    <item>
      <title>How to get your visitorId?</title>
      <description><![CDATA[<p>If you get asked from our support team about your visitorId, you can get it by following these steps:</p>
<p>1. Open website in your brower</p>
<p>Open the website for which you want to check the visitorId.</p>
<p>2. Open Console in your browser.</p>
<p>For Chrome it can be done by clicking View &gt; Developer &gt; JavaScript Console. </p>
<p></p>
<p>3. Copy &amp; paste code in Console</p>
<p>Copy the code below and paste it in Console:</p>
<p>It should look like this:</p>
<p></p>
<p>After you have pasted the code, press Enter</p>
<p>4. Get your visitorId</p>
<p>Your visitorId will appear and look similar to "0febcfd09bda3ca3bf3a01c207635f9b" - copy[_cuted_]</p>]]></description>
      <pubDate>Thu, 30 Apr 2020 12:37:43 +0000</pubDate>
      <link>https://help.maxtraffic.com/i86-how-to-get-your-visitorid</link>
      <guid>https://help.maxtraffic.com/i86-how-to-get-your-visitorid</guid>
      <author>Chris</author>
      <dc:creator>Chris</dc:creator>
      <content:encoded><![CDATA[<p>If you get asked from our support team about your visitorId, you can get it by following these steps:</p>
<h2>1. Open website in your brower</h2>
<p>Open the website for which you want to check the visitorId.</p>
<h2>2. Open Console in your browser.</h2>
<p>For Chrome it can be done by clicking <b>View &gt; Developer &gt; JavaScript Console. </b></p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/86/media/Screenshot%202019-08-07%2012.03.46.png" alt="" data-file="___chdfid_19831___"></p>
<h2>3. Copy &amp; paste code in Console</h2>
<p>Copy the code below and paste it in Console:</p>
<pre class="language-javascript"><code>mt(function(sdk) {
    console.log(sdk.visitorId)
})</code></pre>
<p>It should look like this:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/86/media/Screenshot%202019-08-07%2012.14.01.png" alt="" width="300" data-file="___chdfid_19832___"></p>
<p>After you have pasted the code, press <b>Enter</b></p>
<h2>4. Get your visitorId</h2>
<p>Your visitorId will appear and look similar to "<i>0febcfd09bda3ca3bf3a01c207635f9b</i>" - copy this value and provide this to MaxTraffic  team:</p>
<p><img src="//s3.amazonaws.com/chd-data/data/maxtraffic/items/86/media/visitorId.png" alt="" width="300" data-file="___chdfid_19833___"></p>]]></content:encoded>
    </item>
  </channel>
</rss>
