Installation Overview

Zata works by adding few lines of javascript to your application which allows Zata to show the content you create on Zata to right customers at the right time.

Zata embed script along with the events and properties you send to Zata, you can show content such as product walkthroughs, announcements, surveys etc to your users.

Installation Steps :

  1. Figure out events and user properties you want to send to Zata

  2. Add javascript code to your app and verify installation

  3. Create experiences and publish it live in your app

Installing Zata

In order to trigger Experiences live on your app, you must install the Zata script on your product or site.

Installing Zata on your web app is very easy, and will only take a few minutes to do so.

All you have to do is copy the script and paste it before the closing </body> tag on every page of your web application.

<script>
  window.zataProductConfig = {
    secret: "92de90939a6de437fb148788ae2d13de"
  };
</script>
<script src="https://app.zata.io/js/zata-embed.js"></script>
<script>
zataProduct.identify(
  'UNIQUE_USER_ID',
  {
   // name: "Mike",
   // email: "user@test.com",
   // created_at: "121232323", // Unix timestamp
  }
)
</script>

Important: If you are copy-pasting the above example code, then don't forget to fill in the "App Token" with your own app token. If you are already a user, click here to find your "App Token".

You must also pass the "UNIQUE USER ID" using the zata.identify() method as shown in the instructions above to help Zata identify each user.

The more information you pass, the more power you will have at your hands so it's a very good idea to pass other user attributes such as Full Name, Email Address, and Created_at as shown in the instructions above to help you target certain user segments such as new users.

Note: If your web app runs on a Single Page Application framework, then you should refer to this article in order to make sure Zata is fully optimized and running efficiently.

Identifying Accounts

Zata allows you to specify which account the user belongs to through the identify method, for example,

<script>
zataProduct.identify(
  'UNIQUE_USER_ID',
  {
   // name: "Mike",
   // email: "user@test.com",
   // created_at: "121232323", // Unix timestamp
  }
)
</script>

Last updated