unomi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From João Correia <joao.corr...@gmail.com>
Subject Javascript event help!
Date Wed, 27 Nov 2019 06:57:08 GMT
Hi Unomiers,

Discovered Unomi yesterday and got it set up today!. Works nicely on
pageviews but I would like to fire a identify or event to identify the
profile.

I'm having trouble sending events using the JS tracker. This is how I'm
trying sending an event:

properties =
{
            "eventType":"Whatsup",
            "scope": "example",
            "source":{
                "itemType": "site",
                "scope":"example",
                "itemId": "mysite"
            },
            "target":{
                "itemType":"form",
                "scope":"example",
                "itemId":"contactForm"
            },
            "properties" : {
              "firstName" : "John",
              "lastName" : "Doe",
              "email" : "john.doe@acme.com"
            }
        }

window.unomiTracker.track("MyEvent", properties);

I look at the network tab and Im also on unomi:event-tail and nothing comes
through. Also tried identify it goes into local storage but doesn't get
sent.

window.unomiTracker.identify({
  nickname: 'Amazing Grace',
  favoriteCompiler: 'A-0',
  industry: 'Computer Science'
});

Does anyone have any examples of how to fire an event using the Javascript
Tracker?

Thanks
Joao Correia

--

*João Correia*

San Diego, CA
mobile: +1 (858) 284-6010
web: https://joaocorreia.io

Mime
View raw message