djtentman Posted June 14 Posted June 14 (edited) We use tracking links to track the source off traffic to our website: social media, pay per click, and etc. Then when a form is submitted, we have a hidden source field so that we can track the lead source in our CRM and track conversions and make advertising decisions. However, Squarespace strips out the tracking link as soon as a user clicks away from the landing page. To solve that, I added this code <script > <!-- Code to keep tracking URL through entire session --> $('.three-digits .field-element').attr("type", "number"); $('.number .field-element').attr("type", "number"); </script> This would keep that tracking code appended to the link as a user browsed the site. However, it stopped working a few months ago. Any suggestions on how to solve it? Edited June 14 by djtentman
Beyondspace Posted June 14 Posted June 14 3 hours ago, djtentman said: We use tracking links to track the source off traffic to our website: social media, pay per click, and etc. Then when a form is submitted, we have a hidden source field so that we can track the lead source in our CRM and track conversions and make advertising decisions. However, Squarespace strips out the tracking link as soon as a user clicks away from the landing page. To solve that, I added this code <script > <!-- Code to keep tracking URL through entire session --> $('.three-digits .field-element').attr("type", "number"); $('.number .field-element').attr("type", "number"); </script> This would keep that tracking code appended to the link as a user browsed the site. However, it stopped working a few months ago. Any suggestions on how to solve it? Can you share your URL so I can check it? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
djtentman Posted June 28 Author Posted June 28 https://tentsforrent.net I hired a developer and he injected some code. So, it works again now.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment