How do I Install Kwai Pixel and Set up Tracking Conversions for Events?

On This Page

Install Kawi Pixel Base Code

Install Kwai Event Code

Make sure your Pixel is working

FAQ

Install Kawi Pixel Base Code

1. Log into Kwai for Business Manager, click Pixel under Assets, and then click Create New Pixel.

2. Enter the Pixel name, confirm Manually install Pixel code and Developer mode, and then click Create.

mceclip0.png3. Click the Copy button to copy the Base Code, and click the OK button to enter the Pixel details page.

mceclip1.png

4. Enable Embed data tracking snippets at Shoplazza admin.

mceclip2.png

mceclip4.png

5. Click Add new in the upper right corner, enter the code Name, then paste the copied code in, select All for the Page, select Top for the Location, and click Save.

mceclip5.pngAfter conducting the above operations, each store page will report the pageView event, and you can also use the Kwai Pixel Helper to detect it.

Install Kwai Event Code

Pixel event code enables you to report specific actions or events so you can monitor conversions. For example, if you're in an e-commerce business, it's important for you to monitor events such as "Add to cart" and "Order". Here are several common conversion events in the conversion funnel to illustrate how to install event codes for these conversion events. Such as viewing product details, adding to cart, initiating checkout, adding payment information, and completing payment.

EVENT_CONTENT_VIEW

Add the following event code to the Embed data tracking snippets.

<script type="text/javascript"> try {

    $(function () {

        $(document.body).on('dj.viewContent', function (e, data) {

            kwaiq.track("contentView");

        })

    })

} catch(e){ }</script>

mceclip6.png

EVENT_ADD_TO_CART

Add the following event code to the Embed data tracking snippets.

<script type="text/javascript"> try {

    $(function () {

        $(document.body).on('dj.addToCart', function (e, data) {

            kwaiq.track("addToCart");

        })

    })

} catch(e){ }</script>

mceclip7.png

EVENT_INITIATED_CHECKOUT

Add the following event code to the Embed data tracking snippets
<script type="text/javascript"> try {

$(function () {

$(document.body).on('dj.initiateCheckout', function (e, data) {

kwaiq.track("initiatedCheckout");

})

})

} catch(e){ }</script>

mceclip8.png

EVENT_ADD_PAYMENT_INFO

Add the following event code to the Embed data tracking snippets.

<script type="text/javascript"> try {

    $(function () {

        $(document.body).on('dj.checkoutStepPayment', function (e, data) {

            kwaiq.track("addPaymentInfo");

        })

    })

} catch(e){ }</script>

mceclip9.png

EVENT_PURCHASE

Add the following event code to the Embed data tracking snippets, The code contains parameters of order value and currency.

<script type="text/javascript"> try {

    $(function () {

        $(document.body).on('dj.purchase', function (e, data) {

            kwaiq.track("purchase", {

                value: data.prices.total_price,

                currency: data.currency_code

            });

        })

    })

} catch(e){ }</script>

mceclip10.png

Make sure your Pixel is working

After finishing the setup, there are two ways to check if the Pixel is working properly:

  1. Pixel Helper
  2. Preview ads.

Both of these are required.

1. Pixel Helper

After finishing the code installation, you can then set up “Add to Cart”, “Initiate Checkout” and “Purchase” (Orders purchase can be tested by the How to place test orders through simulated transactions), and test them with the Kwai Pixel Tracker.

mceclip11.png

mceclip12.png

mceclip13.png

mceclip14.png

mceclip15.png

2. By previewing events, you can simulate the entire customer experience.

Conversions are recorded from the click on the ad to the Pixel. Conversions from preview ads will be recorded in Preview Events, located on the Pixel details page of the Event Manager, and will not affect your ad performance.

mceclip16.png

 FAQ

1. What if I have multiple Kwai Pixels on my website?

Kwai requires only 1 Pixel per website, as adding multiple Pixels adds complexity to organization and management, as well as having an unknown impact on ad performance. Additionally, Kwai requires that only one website be configured per Pixel. If multiple sites are configured, Pixel data will show aggregated information rather than individual information for each site, both of which can affect ad serving performance.

2. I'm about to create an ad and select an event for my conversion target, but I didn't see the event under the "Conversion target" column.

Once your event is triggered (such as testing in this Pixel), it will appear in the event manager for you to select as a conversion target for your ad.

mceclip17.png

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.

Live chat
Reset