Integrating Sift science With WooCommerce

Before we start

Make sure you have installed WordPress and WooCommerce for WordPress. Also registered for an account with Sift science.

Little bit of theory

Sift science has a very nice integration guide here https://siftscience.com/resources/guides/chargebacks do not proceed if you still haven’t read this integration guide. Take a break here go to this URL and read it once you are familiar with the integration process come back and continue this read.

Lets dive into it.

Sift science charge back integration has 4 parts User Activity, Checkout, Decision and Feedback. This page has more information https://siftscience.com/resources/guides/chargebacks

Installing JavaScript snippet to track user activity.

you can get the snippet from this page https://siftscience.com/developers/docs/javascript/javascript-api or you can copy it from here notice I have made some changes in the first two lines of this snippet.

(1) Find your Javascript snippet key

Creating a WordPress Code Snippet and populating _user_id and _session_id

After uploading JavaScript Snippet to your WordPress root folder we need to create a WordPress Snippet which will load and Send _user_id and _session_id to JavaScript Snippet to do this lets Login to WordPress back end and look for snippets in the left menu options. If you can’t find it make sure you have installed the Code Snippet Plugin Correctly.

--

--

MS in CS | MS in IS | Start Up Founder |Boomtown Alumni. I am always doing something in the hope that answers will follow.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Naveed Ahmad

Naveed Ahmad

MS in CS | MS in IS | Start Up Founder |Boomtown Alumni. I am always doing something in the hope that answers will follow.