How to enable option to know who views your posts

Sometimes it can be extremely useful to know who sees your product posts.
It is very easy to enable.  Just follow the next steps:

Step 1.

Go to your widget script in "General Settings" and scroll until the "Code" section.

Step 2.

Look for the "data-user-metadata" tag.

<div id="rp-token" class="rp-container" data-param="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwcm9kdWN0X2lkIjoyMH0.AojEjHKFX3iQ-KgHHmQCOsqV8r_J2mjKr84OzROtGE8" lang="en" data-user-metadata=""></div>
    <script type="text/javascript" src="https://widget.releasepad.io/releasepad-bundle.js" charset="utf-8"></script><br><link rel="stylesheet" href="https://widget.releasepad.io/releasepad-bundle.min.css">

Step 3.

Depending on the programming language you are using, make sure every time user loads the page, this value is filled with it's information.  It could be the users email, user id or any unique field that you can use to identify.

For example, if you are using ruby on rails, it could be something like this (<%= @user.email %>):

<div id="rp-token" class="rp-container" data-param="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwcm9kdWN0X2lkIjoyMH0.AojEjHKFX3iQ-KgHHmQCOsqV8r_J2mjKr84OzROtGE8" lang="en" data-user-metadata="<%= @user.email %>"></div>
    <script type="text/javascript" src="https://widget.releasepad.io/releasepad-bundle.js" charset="utf-8"></script>
<link rel="stylesheet" href="https://widget.releasepad.io/releasepad-bundle.min.css"><br>

Step 4.

Copy and paste this new code into your platform.  
You should be good to go!

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us