Hi Unomiers,

Im looking to enrich a profile with some properties like CompanyDomain,
Employees and others. Im trying to do this with the JS tracker by sending a
pageview with properties but they aren't showing up on Unomi.

I'm sending this:

path = "/cb";
properties = {
      path: path,
      attributes : ["test1"],
      pageInfo: {
        destinationURL: location.href,
        tags : [ "tag1", "tag2", "tag3"],
        categories : ["category1", "category2", "category3"],
      },
      interests : {
        "interest1" : 1
        ,"interest2" : 2
        ,"interest3" : 3
      },
      attributes: [ "testattribute" ],
      properties : {
         "CompanyDomain": "Igloo Analytics"
        ,"CompanyEmployees" : "1-10"
      }
};

//console.log(properties);
window.unomiTracker.page(properties);

In the profile I see the event below.
Why aren't the properties I sent showing up? Any ideas?

       {
            "itemId": "c600f6c5-ed0d-438f-bd29-5a2ac744446b",
            "itemType": "event",
            "scope": "aaa",
            "version": 1,
            "eventType": "view",
            "sessionId": "44ca434d-35ce-5c14-a9bc-35cac9fe943c",
            "profileId": "30ba35a2-c7cb-42d9-a58c-5569ab2d34ec",
            "timeStamp": "2019-12-05T18:02:44Z",
            "properties": {},
            "source": {
                "itemId": "aaa",
                "itemType": "site",
                "scope": "aaa",
                "version": null,
                "properties": {}
            },
            "target": {
                "itemId": "/cb",
                "itemType": "page",
                "scope": "aaa",
                "version": null,
                "properties": {
                    "attributes": [],
                    "consentTypes": [],
                    "interests": {
                        "interest1": 1,
                        "interest3": 3,
                        "interest2": 2
                    },
                    "pageInfo": {
                        "destinationURL": "https://www.xxxxx.com/";,
                        "categories": [
                            "category1",
                            "category2",
                            "category3"
                        ],
                        "pageID": "/cb",
                        "pagePath": "/cb",
                        "pageName": "xxx: xxxxxxxxxxxx",
                        "tags": [
                            "tag1",
                            "tag2",
                            "tag3"
                        ],
                        "referringURL": ""
                    }
                }
            },
            "persistent": true
        }




Thanks
Joao Correia
--

*João Correia*

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

Reply via email to