Join the Webstudio community

Updated 2 months ago

Dynamic number swapping for web studio

At a glance

The community member is trying to set up conversion call tracking for their web studio, specifically dynamic number swapping. They are having issues with the code not activating sometimes on WordPress, and are wondering if there's anything preventing the code from activating on Web Studio. The community members provide some code snippets for Google Tag Manager and CallRail, and explain that they are trying to track every call and lead form submission. Another community member suggests using Google Tag Manager, and provides a link to more information on adding global code in Web Studio. However, there is no explicitly marked answer to the original issue.

Useful resources
Hey, do you guys have any tutorial on conversion call tracking for web studio? We are trying to do dynamic number swapping. On the landing page we just built, but it’s not working sometimes something in the back end will be preventing the code from being activated that happens sometimes on WordPress wondering if there’s anything that’s preventing the code from activating on Web studio
1
O
I
J
9 comments
I am not sure I understand the question, can you explain exactly what you are tracking and how and what the observed problem exactly is?
ideally show the code you use and where you use it
We are trying to set up conversion tracking for ppc
Here’s the codes : Go Green Hauling
Google Tag Manager
Copy the code below and paste it onto every page of your website.
  1. Paste this code as high in the <head> of the page as possible:
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NK3N9Q5K');</script>
<!-- End Google Tag Manager -->

  1. Paste this code immediately after the opening <body> tag:
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NK3N9Q5K"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

CallRail Snippets

<script type="text/javascript" src="//cdn.callrail.com/companies/449204161/01c49c0d2724c152df37/12/swap.js"></script>
We are trying to track every single call and lead form submission
ok so you just want to use google tag manager, there should be no problem with that
@John Siciliano we are trying to call a javascript snippet from CallRail to Swap phone numbers shown on the website. Swapping will activate once the format of the swap target is detected. We notice that once the Webstudio loaded the entire body all elements are fixed and can no longer modified by a third party like CallRail?
If you dont have it resolved yet, please share a project link
Add a reply
Sign up and join the conversation on Discord
Paste this code immediately after the opening tag:CallRail Snippets","dateCreated":"2024-07-30T20:16:11.102Z","dateModified":"2024-07-30T20:16:11.102Z","author":{"@type":"Person","url":"https://help.webstudio.is/members/397d7632-3b7a-4d83-b0a4-ee049afce29b","name":"Ivan Kravtsov","identifier":"397d7632-3b7a-4d83-b0a4-ee049afce29b","image":"https://cdn.discordapp.com/avatars/1220825388478103706/c3127916b1a4a88de3c45d4ef0428e10.webp?size=256"},"commentCount":0,"comment":[],"position":4,"upvoteCount":0},{"@type":"Comment","text":"We are trying to track every single call and lead form submission","dateCreated":"2024-07-30T20:17:20.862Z","dateModified":"2024-07-30T20:17:20.862Z","author":{"@type":"Person","url":"https://help.webstudio.is/members/397d7632-3b7a-4d83-b0a4-ee049afce29b","name":"Ivan Kravtsov","identifier":"397d7632-3b7a-4d83-b0a4-ee049afce29b","image":"https://cdn.discordapp.com/avatars/1220825388478103706/c3127916b1a4a88de3c45d4ef0428e10.webp?size=256"},"commentCount":0,"comment":[],"position":5,"upvoteCount":0},{"@type":"Comment","text":"ok so you just want to use google tag manager, there should be no problem with that","dateCreated":"2024-07-30T20:44:26.122Z","dateModified":"2024-07-30T20:44:26.122Z","author":{"@type":"Person","url":"https://help.webstudio.is/members/cdd3ed87-53a0-414a-885a-56b7939e412a","name":"Oleg Isonen","identifier":"cdd3ed87-53a0-414a-885a-56b7939e412a","image":"https://cdn.discordapp.com/avatars/469405813048606720/8b66a5882214c63ee6148fcce3ef8e93.webp?size=256"},"commentCount":0,"comment":[],"position":6,"upvoteCount":0},{"@type":"Comment","text":"You can read more about adding global code here https://docs.webstudio.is/university/foundations/project-settings#general","dateCreated":"2024-07-30T23:02:22.610Z","dateModified":"2024-07-30T23:02:22.610Z","author":{"@type":"Person","url":"https://help.webstudio.is/members/a3a85f00-1132-4262-8176-1ff92ab9d883","name":"John Siciliano","identifier":"a3a85f00-1132-4262-8176-1ff92ab9d883","image":"https://cdn.discordapp.com/avatars/1141467296532009071/8c83067a661d2916bfb8be5a37677463.webp?size=256"},"commentCount":0,"comment":[],"position":7,"upvoteCount":0},{"@type":"Comment","text":"@John Siciliano we are trying to call a javascript snippet from CallRail to Swap phone numbers shown on the website. Swapping will activate once the format of the swap target is detected. We notice that once the Webstudio loaded the entire body all elements are fixed and can no longer modified by a third party like CallRail?","dateCreated":"2024-07-31T03:43:51.175Z","dateModified":"2024-07-31T03:43:51.175Z","author":{"@type":"Person","url":"https://help.webstudio.is/members/76ebdcf9-bfb7-4956-824d-82123b8908e8","name":"itsmelem","identifier":"76ebdcf9-bfb7-4956-824d-82123b8908e8","image":"https://cdn.discordapp.com/embed/avatars/1.png"},"commentCount":0,"comment":[],"position":8,"upvoteCount":0},{"@type":"Comment","text":"If you dont have it resolved yet, please share a project link","dateCreated":"2024-07-31T14:24:47.097Z","dateModified":"2024-07-31T14:24:47.097Z","author":{"@type":"Person","url":"https://help.webstudio.is/members/a3a85f00-1132-4262-8176-1ff92ab9d883","name":"John Siciliano","identifier":"a3a85f00-1132-4262-8176-1ff92ab9d883","image":"https://cdn.discordapp.com/avatars/1141467296532009071/8c83067a661d2916bfb8be5a37677463.webp?size=256"},"commentCount":0,"comment":[],"position":9,"upvoteCount":0}],"author":{"@type":"Person","url":"https://help.webstudio.is/members/397d7632-3b7a-4d83-b0a4-ee049afce29b","name":"Ivan Kravtsov","identifier":"397d7632-3b7a-4d83-b0a4-ee049afce29b","image":"https://cdn.discordapp.com/avatars/1220825388478103706/c3127916b1a4a88de3c45d4ef0428e10.webp?size=256"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0}}]