Remove legacy integration code from Shopify
Overview
If you previously integrated the Taboola pixel manually (or via a third-party app), we recommend using the Taboola Pixel app instead.
Before you install the app, you need to remove all legacy integration code, as described on this page.
Where should I check?
There are a number of different manual integration methods for Shopify. To make sure that no legacy code is left behind, we recommend checking all of them.
Guidelines & flow
- Check all relevant configurations in your Shopify dashboard, and delete any Taboola pixel scripts that are present.
- For each step in the purchase funnel, verify that no pixels are fired.
3rd party apps
If present, we recommend uninstalling any 3rd party apps that you previously used to install the Taboola pixel:
- Log into your Shopify dashboard.
- Click on the
Apps
node in the sidebar. A popup appears with your installed apps. - Search for the relevant 3rd party app, and uninstall it.
Dashboard settings
In your Shopify dashboard, review the settings below.
Customer event
settings
Customer event
settings- Select
Settings
>Customer Events
- Look for any pixels with the name
Taboola Pixel
., or similar.(The exact name may vary depending on what your team called it, or which 3rd party app installed it.)
- If present, delete it (or mark it as
disconnected
, and delete it later).
Checkout
settings
Checkout
settings- Select
Settings
>Checkout
- Scroll down and look for a
Post-purchase page
section. - If the
Post-purchase page
section is present, look underAdditional Scripts
for a script containing_tfa.push
. If present, remove it:
<script>
_tfa.push({
notify: 'event',
name: 'make_purchase',
id: 123456,
revenue: '{{ total_price | money_without_currency }}',
currency: '{{ shop.currency }}',
orderid: '{{ order_number }}'
});
</script>
Sample screenshot:
- Scroll down slightly further to the
Order status page additional scripts
section. - Under
Additional Scripts
, look for a script containing_tfa.push
. If present, remove it (see the sample script above).
Theme templates
In your Shopify dashboard, review the theme templates below.
layout
template folder
layout
template folder- Select
Online store
>Themes
>Edit Code
- Under the layout template folder, select
theme.liquid
- Look for a script containing
_tfa.push
. If present, remove it:
<!-- Taboola Pixel Code -->
<script type='text/javascript'>
window._tfa = window._tfa || [];
window._tfa.push({notify: 'event', name: 'page_view', id: 123456});
!function (t, f, a, x) {
if (!document.getElementById(x)) {
t.async = 1; t.src = a; t.id = x; f.parentNode.insertBefore(t, f);
}
}(document.createElement('script'),
document.getElementsByTagName('script')[0],
'//cdn.taboola.com/libtrc/unip/123456/tfa.js',
'tb_tfa_script');
</script>
<!-- End of Taboola Pixel Code -->
- Under the layout template folder, select
checkout.liquid
.
If
checkout.liquid
is not present, you can skip to the next section.
- Look for a script containing
_tfa.push
. If present, remove it:
<!-- Taboola Pixel Code -->
<script>
_tfa.push({
notify: 'event',
name: 'start_checkout',
id: 123456,
});
</script>
<!-- End of Taboola Pixel Code -->
snippets
template folder
snippets
template folder- (If you have not already done so, select
Online store
>Themes
>Edit Code
) - Under the
snippets
template folder, selectbuy-buttons.liquid
. - Look for any scripts containing
_tfa.push
. If present, remove them.
Sample script to remove
onclick="_tfa.push({notify: 'event', name: 'add_to_cart', id: 123456});"
Verification
Use the following steps to verify that all legacy integration code has been removed.
Important
You must perform the following verification before installing the Taboola Shopify App.
For more infromation about the verification flow, see: Verify your web pages
Using a Chrome web browser:
-
Install the
Taboola Pixel Helper
extension from the Chrome Web Store. -
Click on
extensions
(top, right), and pin
Taboola Pixel Helper
to the toolbar for quick access.
-
Open your Shopify site, and click on the extension. Verify that no pixels were detected.
-
For each step in the Shopify purchase funnel, verify that no pixels were detected by the extension:
Product Search
Product Collection View
Product Details View
Add To Cart
View Cart
Start Checkout
Make Purchase
The exact name for each event may vary, depending on what you named it.
What's next?
If no pixels were detected, install the Taboola Pixel app.
Updated 10 days ago