Subscription postback

Notix client can receive postbacks (server to server calls) about user subscription event. Each postback can contain additional parameters from tag.

Typically this process consists of two steps:

  1. Customize subscription tag, add all required additional variables. This action is performed by website owner (Notix client).
  2. Setup postback url. This action is performed by manager, please contact us to do this, after previous step is done.

Customize tag parameters

You can setup up to 5 variables during subscription process and receive them as postback to your URL, after subscription happens. Also these variables can be used for macros replacement inside push message content.

    ...
    sdk.startInstall({
        appId: "YOUR-APP-ID-HERE",
        // .. other params
        var_1: "my_var_1",
        var_2: "my_var_2",
        var_3: "my_var_3",
        var_4: "my_var_4",
        var_5: "my_var_5",
        // .. other params
    })
    ...

Parameters {var_1} and {var_2} also have aliases {var} and {ymid}.

    ...
    sdk.startInstall({
        appId: "YOUR-APP-ID-HERE",
        // .. other params
        var: "my_var_1",
        ymid: "my_var_2",
        // .. other params
    })
    ...

Setup postback URL

To receive notifications about successful subscriptions on your backend you should provide to your manager URL that should be called with placeholders for variables from previous step.

http://your-domain.com/postback?var1={var_1}&var2={var_2}&var3={var_3}&var4={var_4}

Example

Subscription tag

<script>
    var s = document.createElement("script")
    s.src = "https://notix.io/ent/current/enot.min.js"
    s.onload = function (sdk) {
        sdk.startInstall({
            appId: "YOUR-APP-ID-HERE",
            loadSettings: true,
            var: "user@your.domain",
            var_3: "utm_source_google",
        })
    }
    document.head.append(s)
</script>

Postback URL

http://your-domain.com/postback?user_info={var_1}&traffic_source={var_3}

Related topics: