PMC Plugins
Pmc Getemails

PMC GetEmails

A third-party integration company (https://getemails.com/ (opens in a new tab)) tool that uses digital fingerprints of users to capture emails, prior to user signing up for newsletter. A JS script is added to the page with function calls to collect ( geq.page() ) and/or suppress ( geq.suppress() ) user email, if eventually collected through site signup, to eliminate duplicates.

Setup

  1. Filter default set to true to add script to page, themes can opt-out through pmc_getemails_js filter
  2. Each site will have a unique site_id that will be passed into the JS script from theme config using the pmc_getemails_id filter
  3. Exact Target signup pages need to have the script and suppression call added upon Save Email functionality
  4. Digioh signup pop-up also need to add suppression call on collected email if user signs up
  5. Speak with Audience Development for any other suppression calls that may need to be added

Exact Target signup / preference pages setup

  1. Sign in to Exact Target and select brand you need to setup.

  2. Navigate to Email Studio -> Email -> Content (select "Use Classic Content" if not selected) -> My Landing Pages

  3. Update the BRAND Signup and BRAND Preference Center pages (this is typical naming for most brands)

  4. Find the final closing </script> tag at bottom of page and right before add the following:

    //GetEmails script
    !function(){var e=window.geq=window.geq||[];if(!e.initialize)if(e.invoked)window.console&&console.error&&console.error("GetEmails snippet included twice.");else{e.invoked=!0,e.methods=["page","suppress","trackOrder","identify","addToCart"],e.factory=function(t){return function(){var r=Array.prototype.slice.call(arguments);return r.unshift(t),e.push(r),e}};for(var t=0;t<e.methods.length;t++){var r=e.methods[t];e[r]=e.factory(r)}e.load=function(e){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://s3-us-west-2.amazonaws.com/storejs/a/"+e+"/ge.js";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r)},e.SNIPPET_VERSION="1.5.0",e.load("BRAND_ID")}}();

    Be sure to replace the BRAND_ID with one supplied to you.

  5. Find code that looks like this in template:

    // wait for the DOM to be loaded 
    $(document).ready(function() { 
        // bind 'form' and provide a simple callback function 
        $('#form').ajaxForm(function() { 
            $(".alert").addClass('jump-success');
            $(".alert-text").text('Your email preferences have been updated successfully.');
            return false;
        }); 
    });

    Add this check

    if ( 'object' === typeof geq ) {
       geq.suppress();
     }

    Should look similar to this.

     // wait for the DOM to be loaded 
     $(document).ready(function() { 
         // bind 'form' and provide a simple callback function 
         $('#form').ajaxForm(function() { 
             $(".alert").addClass('jump-success');
             $(".alert-text").text('Your email preferences have been updated successfully.');
             if ( 'object' === typeof geq ) {
                 geq.suppress();
             }
             return false;
         }); 
     });
  6. You can use Sportico as an example of proper setup.