<?xml version="1.0"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package TikTok Pixel by Amasty
 */-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="ampixel.core.init.pool">
            <block name="ampixel.tiktok.init"
                   template="Amasty_PixelTikTok::init-tiktok.phtml"
                   ifconfig="amasty_pixel_tiktok/general/enabled">
                <arguments>
                    <argument name="init_tiktok_view_model"
                              xsi:type="object">Amasty\PixelTikTok\ViewModel\InitTikTokViewModel</argument>
                </arguments>
            </block>
        </referenceContainer>

        <referenceContainer name="before.body.end">
            <block name="ampixel.tiktok.track"
                   after="ampixel.core.events"
                   template="Amasty_PixelTikTok::track-events.phtml"
                   ifconfig="amasty_pixel_tiktok/general/enabled"/>
        </referenceContainer>
    </body>
</page>
