Insert of a tracking code for CRM integration

I want to integrate Agile CRM with my WIX site and in order to do so I have to integrate a small script: “Copy and paste the below code in your webpage’s HTML just before the tag to enable tracking / API methods.”

How can I do this with WIX Code? When I try to insert, I get the following error:


Can you help me?

Thanks so much
Stefan

Hey Stefan

This is not possible with wix code. When you insert code right into the ide, it won’t be in html source of the side - it’s handled completely different way.

This is knwon problem and Wix is going to implement this ability in upcoming months (it’s highly asked by our users)

So the only solution here - wait…

Thanks!

Thank you very much for the open and honest answer.
Do you have any idea how long it will take? I believe this is a showstopper for many web-projects with WIX. Every serious business will want to integrate their website with a CRM or other 3rd-party systems.

Is there any workaround for the integration of such an external javascript? I really like WIX and don’t want to decide against it…
Thanks!

I got to the exact same spot as you, Stefan, and ended up finding your post! This is a massive problem with Wix, but the workaround I’ve found is this:

Add an HTML element to each page on your site
Drop in your tracking code
Render each page and find the unique iFrame URL for each page (you could do this by using a test contact record, visiting each page one-by-one, and recording the URL that your CRM displays)
Use that unique iFrame URL for any automation you’re doing/give a key of URLs to stakeholders who need to see the website behavior info

This is obviously not a great solution, but it’s the only one I’ve found. Seems like there’s a very easy solution, which is to give users the ability to add custom code to their . Maybe just add as a valid input on the “Add Header Code Meta Tags” section. This just shouldn’t be so hard! Glad to see Wix is aware of the problem, though.

It turns out my workaround doesn’t work. Somehow the URL is the same even though I created a unique HTML object on each page.

Thanks laura, good to know that I am not alone with this problem.

Using the HTML-element doesn’t work either in my case as I need to place the tracking-code of the Agile CRM system in the body of each page (not in the header).

Any idea when this will be available? this is a really important feature

Actually… it’s already available :slight_smile:
Take a look at “track and analyze” - Adding Custom Code to Your Site | Help Center | Wix.com
What you’re looking for can be covered by using the “custom” option

This is a game-changer! Just tried to insert my first script. Thanks for adding this!

Has this been confirmed to work? I have a client that wants to switch to Wix, but uses AgileCRM. I’d love to make the transition.

Yes it’s working for me!

When will it work for the Free Wix website?
I see this Note:
This feature is only available for sites with a connected domain .

This post is from 2018 and is being closed.

For Tracking & Analytics to work, you need to have a Premium plan and a connected domain, it is not available for free users.

This is not a code related issue and if you need more help then go through Wix Support.
https://support.wix.com/en/article/contacting-wix-support