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.
1
<script>
2
window.zataProductConfig = {
3
secret: "92de90939a6de437fb148788ae2d13de"
4
};
5
</script>
6
<script src="https://app.zata.io/js/zata-embed.js"></script>
7
<script>
8
zataProduct.identify(
9
'UNIQUE_USER_ID',
10
{
11
// name: "Mike",
12
// email: "[email protected]",
13
// created_at: "121232323", // Unix timestamp
14
}
15
)
16
</script>
Copied!
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,
1
<script>
2
zataProduct.identify(
3
'UNIQUE_USER_ID',
4
{
5
// name: "Mike",
6
// email: "[email protected]",
7
// created_at: "121232323", // Unix timestamp
8
}
9
)
10
</script>
Copied!
​
Last modified 5mo ago