Skip to main content

How to Embed Stats

Updated over a month ago

Overview

If you want to embed a stats experience onto one of your pages, please reference the following steps.

Please note that you should only follow these instructions if you'd like to use our authentication flow. With our authentication flow, an advocate will click to view their stats, will be emailed a link to verify their email, will click to verify their email, and will then have access to their stats. You can also verify who a user is by placing the embedded stats zone behind a login and/or by utilizing JWTs.

Instructions

To place an embedded stats zone on a page in your app (such as on a My Account page), you'll want to add the embedded stats zone inline—that is, exactly where you want the creative to appear on the page.

<span id='extole_zone_advocate_stats_embedded'></span><script type="text/javascript">     (function(c,b,f,k,a){c[b]=c[b]||{};for(c[b].q=c[b].q||[];a<k.length;)f(k[a++],c[b])})(window,"extole",function (c,b){b[c]=b[c]||function (){b.q.push([c,arguments])}},["createZone"],0); 
extole.createZone({ name: "advocate_stats_embedded",
element_id: 'extole_zone_advocate_stats_embedded',
data: {
"email": REPLACE_WITH_DATA_BEFORE_ADDING_TAG_TO_PAGE,
"first_name": REPLACE_WITH_DATA_BEFORE_ADDING_TAG_TO_PAGE,
"last_name": REPLACE_WITH_DATA_BEFORE_ADDING_TAG_TO_PAGE,
"partner_user_id": REPLACE_WITH_DATA_BEFORE_ADDING_TAG_TO_PAGE
} });</script>

The rest of the stats experience is controlled through the My Extole platform.

Screen_Shot_2020-09-11_at_5.29.42_PM.png
Did this answer your question?