WIX.com is a cloud-based development platform that allows you to build your own website without the need to code it from A to Z. If you want to track events that are triggered on your WIX websites, that’s where Amplitude comes in.
Initializing Amplitude on WIX is quite simple and is done just by copypasting our Browser SDK 2.0 initialization snippet into the Settings of your WIX website:
- Open the Settings of your WIX website and go to the ‘Advanced’ tab → Custom code
- Click ‘Add Custom code’ to add our JavaScript SDK code to your WIX website
- Go to our Browser SDK 2.0 documentation and copy the installation snippet (make sure you also grab your Project’s API key and put it in the code instead of ‘YOUR_API_KEY_HERE’
- Add this snippet to your WIX Custom Code field, name this code snippet some meaningful name if you want (e.g ‘Amplitude Initialization’), select load once/load code on each new page and make sure you place it in the Head of your website code.
- Ta-da! Make sure the toggle is on and now you are done with initializing Amplitude on your WIX website.
Now that you get started, continue to custom user ID, track an event and send properties.
Best,
Amplitude team