You can integrate the AnyClip player into your WordPress website using Google Tag Manager. Follow the steps below to configure the player embed via GTM in WordPress.
๐ Prerequisite
Obtain the Player JS-embed code from AnyClip.
Part 1: Set Up Google Tag Manager on WordPress
Go to Google Tag Manager.
Select the appropriate account/domain under the Google Tags tab.
Click Installation Instructions.
Click Select your platform.
Choose WordPress.
Follow the instructions provided to install GTM on your WordPress site.
Part 2: Add the AnyClip Player as a Custom Tag
Once Google Tag Manager is installed:
1. Create a New Tag
2. Name the Tag
3. Choose Tag Type
4. Paste the Player Embed Code
In the HTML field, paste your customized code (Remmeber to replace pubname and widgetname values):
<script>
(function() {
var script = document.createElement('script');
script.src = 'https://player.anyclip.com/anyclip-widget/lre-widget/prod/v1/src/lre.js';
script.setAttribute('pubname', '360dailycom'); // Replace with your pubname
script.setAttribute('widgetname', '0011r00001kaHto_131'); // Replace with your widgetname
document.getElementsByTagName('head')[0].appendChild(script);
})()
</script>
5. Set the Trigger
6. Save the Tag
7. Publish the Changes
In the Overview section, confirm the tag is listed under Workspace Changes.
Click Submit.
Click Publish.
๐ Note: It may take a few minutes for the new tag to propagate across your site.
8. Verify the Player is Loaded
Open Chrome DevTools (
Right-click > Inspect > Network
tab).Confirm
lre.js
is loaded on all pages.
9. Add Player Placeholder to Your Siteโs Articles
To designate where the player will appear, add the following HTML snippet to your page templates or article content:
<div id="ac-lre-player"></div>
โ ๏ธ Disclaimer
This guide involves using Google Tag Manager, a third-party tool.
AnyClip is not affiliated with Google Tag Manager, and we do not assume responsibility for its setup, functionality, or integration issues.
Ensure you have access to your GTM account and the required permissions before proceeding.