Site Tools

User Tools

Page Tools

Personyze allows you to log Interaction Events from your JavaScript.

These commands will work on pages where Personyze Tracker Code is installed. It's possible to call the commands before the Tracking Code, and they will be executed later by Personyze.

In the code below substitute ARTICLE_ID with value that appears in Articles Catalog in the “Internal ID” column.

You can try these commands in a browser console. In this case, Personyze testing mode will be useful. Please, consult this page for description.


var articles_viewed = ['ABOUT_PIZZA_3', 'ABOUT_SPAGHETTI_15'];
for (var i=0; i<products_viewed.length; i++)
{	(self.personyze=self.personyze||[]).push(["Article Viewed", articles_viewed[i]]);

1. Viewed event.

(self.personyze=self.personyze||[]).push(["Article Viewed", ARTICLE_ID]);

2. Liked event.

(self.personyze=self.personyze||[]).push(["Article Liked", ARTICLE_ID]);

3. Unliked (“Not liking anymore”) event.

(self.personyze=self.personyze||[]).push(["Article Unliked", ARTICLE_ID]);

4. Commented event.

(self.personyze=self.personyze||[]).push(["Article Commented", ARTICLE_ID]);

5. Article Reached it's goal (conversion) event.

(self.personyze=self.personyze||[]).push(["Article Goal", ARTICLE_ID]);