How to Install Tiktok Pixel and Conversion API on Shopify

Introduction

In today's digital age, social media platforms have become a vital tool for businesses to reach their target audience. Tiktok, in particular, has gained immense popularity among younger generations and has become an attractive platform for businesses to advertise their products or services. However, it is not enough to simply run ads on Tiktok; it is equally important to track the effectiveness of these ads and optimize marketing strategies accordingly. This is where Tiktok Pixel and Conversion API come into play. By installing these tools on Shopify, business owners can track user behavior and get accurate, real-time conversion tracking. This allows them to discover any tracking errors and make necessary adjustments to improve their ad campaigns. In this blog post, we will provide a step-by-step guide on how to install Tiktok Pixel and Conversion API on Shopify so that you can optimize your marketing strategy with accurate data.

Creating a Tiktok Ads Manager Account

To get started with Tiktok advertising, the first step is to create a Tiktok Ads Manager account. This can be done by visiting the Tiktok Ads Manager website and clicking on the "Create an Ad" button. From there, you will be prompted to enter your email address and password to create an account.

Once you have created your account, you will need to set up your payment information. Tiktok offers a variety of payment options, including credit cards and PayPal. You can also set up a billing threshold, which is the maximum amount that you are willing to spend on ads before being charged.

One of the benefits of having a Tiktok Ads Manager account is that it allows you to create and manage multiple ad campaigns from one central location. You can also access detailed analytics and reporting tools to track the performance of your ads.

Installing Tiktok Pixel and Conversion API on Shopify

Installing Tiktok Pixel and Conversion API on Shopify is a crucial step for any Shopify store owner or marketer looking to optimize their marketing strategy. Tiktok Pixel is a tracking code that helps you track user behavior on your website, while Conversion API allows you to send customer data directly from your server to Tiktok's servers. By installing these tools, you can get accurate, real-time conversion tracking and discover tracking errors.

Step-by-step guide on how to install Tiktok Pixel on Shopify

To install Tiktok Pixel on Shopify, first, you need to create a Tiktok Ads Manager account. After creating an account, go to the "Events" section in the Ads Manager and click "Create Event." Choose "Install pixel" and then select "Shopify" as your platform. You will then be prompted to enter your Shopify store URL and click "Connect."

Next, copy the pixel code provided by Tiktok and paste it into the header section of your Shopify theme. To do this, go to Online Store > Themes > Actions > Edit Code > Theme.liquid. Paste the code right before the closing tag.

Once you have installed the pixel code, make sure it is working correctly by going back to the Events section in Ads Manager and clicking "Test Events." If everything is set up correctly, you should see events firing when you perform actions such as adding items to cart or making purchases.

Step-by-step guide on how to set up Conversion API on Shopify

To set up Conversion API on Shopify, first, make sure that your store has an SSL certificate installed. This is required for secure communication between your server and Tiktok's servers.

Next, go to the "Settings" section in Ads Manager and click "Conversions API." Click "Create Access Token" and give it a name that describes its purpose (e.g., Shopify). Copy the access token provided by Tiktok.

In your Shopify admin panel, navigate to Settings > Online Store > Preferences. Scroll down until you see the "Additional scripts" section and click "Add script." Paste in the following script:

window.tiktok_conversions_api_key = 'YOUR_ACCESS_TOKEN';
</script>```

Replace YOUR_ACCESS_TOKEN with the access token copied from Ads Manager.

Finally, test that everything is working correctly by going back to Ads Manager and clicking "Test Events."

### Explanation of the benefits of using Tiktok Pixel and Conversion API on Shopify

By installing Tiktok Pixel and Conversion API on your Shopify store, you gain access to valuable data about user behavior and conversions. With this data at your fingertips, you can optimize your marketing strategy by targeting specific audiences with relevant ads based on their actions or retargeting visitors who abandoned their carts.

Tiktok Pixel also allows you to track specific events such as page views, add-to-carts, purchases or sign-ups so that you can measure campaign performance accurately.

Conversion API sends customer data directly from your server to TikTok's servers without requiring users' browsers' involvement. This results in more accurate conversion tracking since there are no discrepancies caused by browser-related issues like ad-blockers or cookies deletion.

### How to discover tracking errors

Even if everything seems set up correctly after installation of both tools (Pixel & Conversions API), there might still be some issues causing incorrect tracking results or discrepancies between different platforms (i.e., Google Analytics). To avoid these problems or fix them quickly once they arise:

- Use [Attribuly attribution](https://shopify-spy.com/apps/apps/shopify-application-319/) tool which provides detailed information about each conversion event.
- Check for any error messages in Ads Manager's Event Diagnostics tool.
- Test different scenarios like adding products into carts/purchases/sign-ups etc., from multiple devices/browsers/IP addresses.
- Compare results with other platforms like Google Analytics.

By following these steps regularly after installation of both tools (Pixel & Conversions API), one can ensure accuracy in reporting metrics related to performance measurement of campaigns run through tik-tok ads manager.


Installing Attribuly Attribution

Attribuly Attribution is a powerful tool that can help Shopify store owners and marketers track their Tiktok ads' performance accurately. Installing Attribuly Attribution is relatively easy, and it can be done in just a few simple steps. First, you need to visit the Attribuly website and create an account. Once you have created your account, you will be given a unique tracking code that you need to install on your Shopify store.

To install the tracking code, navigate to your Shopify admin dashboard and click on "Online Store" from the left-hand menu. From there, select "Themes," then click on "Actions" and choose "Edit Code." Next, locate the "theme.liquid" file and paste the Attribuly tracking code just before the closing tag.

Once you have installed Attribuly Attribution on your Shopify store, it will start tracking all of your Tiktok ads' performance automatically. You can access this data through the Attribuly dashboard, where you can see metrics such as clicks, conversions, revenue generated, and more.

One of the significant benefits of using Attribuly Attribution is that it allows you to see precisely which Tiktok ads are driving sales for your business. This information is crucial for optimizing your marketing strategy and ensuring that you are getting the most out of your advertising budget.

Conclusion

In conclusion, tracking Tiktok conversion and ads on Shopify is a crucial step towards optimizing your marketing strategy. By installing Tiktok Pixel and Conversion API on your Shopify store, you can track user behavior and get accurate, real-time data to make informed decisions. With the help of Attribuly attribution, you can also discover any tracking errors that may be hindering your campaign's success.

Overall, incorporating Tiktok into your marketing mix can be a game-changer for your business. As social media platforms continue to evolve, it's essential to stay up-to-date with the latest trends and tools available to reach your target audience effectively. By following the step-by-step guide outlined in this blog post, you'll be well on your way to leveraging Tiktok's massive user base and driving more conversions for your Shopify store.

In summary, we highly recommend installing Tiktok Pixel and Conversion API on Shopify if you're running ads on this platform. The benefits of doing so are numerous - from gaining valuable insights into user behavior to optimizing your ad spend based on real-time data. We hope this guide has been helpful in getting you started with tracking Tiktok conversion and ads for Shopify. Best of luck with your campaigns!