Skip to content

Wordpress Integration

Requirements

This setup assumes you have already setup your App Key on the Dashboard

Integration Steps

STEP 1. If you don't have already, get a Custom Javascript plugin for your Wordpress installation

Plugin Search

STEP 2. Referring to the WebSDK Integration copy paste the code and replace the app_key and event_key for your App.

copy and paste event_key

STEP 3. To identify users by name you may want to alter the script to get the Wordpress "username" and set that as the Pointzi sh_cuid.

Setting sh_cuid

Your Javascript should not look like the snippet above. Here is the snippet to cut-paste:

streethawk.ready(function() {
    streethawk.register("<your app_key>", "<your event_key").then(function(){
      if (jQuery(".username").text()) {
        window.streethawk.tag.string("sh_cuid",jQuery(".username").text());
      }
    });
});

STEP 4. Login to Wordpress on another browser tab and reload the page.

STEP 5. Go to https://dashboard.pointzi.com/#/users and sorting by "Last Seen" you should see your name in the identifier column.