Persosa's new platform is now live! We're really excited about the updates we've been working on to improve now your brand utilizes personalization. Here's a brief list of what's new/updated:

  • Compatible with multiple channels. In addition to web, you can now personalize your apps and any other digital channel.
  • On your website, a smaller CSS file is loaded synchronously to hide regions that will be changed on the page.
  • The larger Javascript tracking code is now loaded asynchronously so as to not slow down the loading of the page.
  • API and webhook requests/responses are improved and more consistent.

To migrate your account, follow these steps (outlined below):

  1. Update your main tracking code snippet on your website
  2. Update the Persosa Google Analytics Javascript snippet on your site
  3. Re-publish experiences within your Persosa account

Tracking Code

Main Snippet

Your current tracking code looks like like this:

<script src="https://cdn.persosa.com/track/a/<ACCOUNT_ID>.js"></script>

You'll need to update the snippet to look like this:

<script>
!function(c,n,a,i){c.PersosaObject=i,c[i]=c[i]||function(e,s,t,r,o){"init"===e&&s?(t=t||{},(o=n.createElement(a)).async=!1!==t.jsAsync,o.src="//edn.persosa.com/web.js?id="+s+"&o="+btoa(JSON.stringify({p:c.location.href,r:n.referrer,cux:!1!==t.consistentUX,co:!!t.campaignOverride,ar:!1!==t.autoRender})),(r=n.querySelector("head")).insertBefore(o,r.querySelector(a)),!1!==t.loadCSS&&((o=n.createElement("link")).type="text/css",o.rel="stylesheet",o.href="//cdn.persosa.com/t/"+s+"/c/_live/"+c.location.hostname+".css",o.async=0,r.appendChild(o),setTimeout(function(){n.body.classList.add("persosa-r")},3e3))):(c[i].q=c[i].q||[]).push(arguments)}}(window,document,"script","persosa");

persosa('init', '<ACCOUNT_ID>');
</script>

View the tracking code page within Persosa to see the exact code to put into the header of your site.

Google Analytics Tracking

If you're currently passing Persosa data into Google Analytics through the PersosaGAPlugin.init() command, replace that command with the following instead:

persosa('ga', 'analytics');

Publish Code

Within your Persosa account, click Publish to make sure the new platform utilizes your newest configuration.

Did this answer your question?