How to Push Tags in Chrome

Comments

2 comments

  • Avatar
    Nicolas Janel

    Hello,

    Looking in pushwoosh-chrome.js the method pushwooshRegisterDevice() which use the remote API. Using the method doPushwooshApiMethod(), here is how to setTags

    doPushwooshApiMethod('setTags', {
            "application": APPLICATION_CODE,
            "hwid": hwid,
            "tags": {
                idUser: 12
            }
        }
    );
    
  • Avatar
    Gayview Mahat

    Hello Vinay,

    This is yet undocumented in our guides, but you should download the latest pushwoosh-chrome.js file, and call the setTags method from your javascript, e.g.:

    setTags({
        "TagName1": "TagValue1",
        "TagName2": "TagValue2"
    });
    

Please sign in to leave a comment.