To install Smartlook on a WordPress site, you can either use a plugin (recommended) or manually deploy our tracking script.
Installing the tracking script with a plugin (recommended)
To install Smartlook with your WordPress site, you can use any plugin that inputs scripts into the website header. In our example, we will use Header Footer Code Manager, but any custom plugin with this functionality will do.
1. Add the plugin of your choice to your WordPress
Go to Plugins → Add New and then search for a plugin of your choice, install and activate it.
Once activated, find the plugin either in the Installed plugin menu or sidebar. If you chose Header Footer Code Manager, click on Add New Snippet.
2. Copy the Smartlook tracking code
The tracking code can be found in your project settings in Smartlook, under Account → Projects → Tracking code.
3. Insert it into the plugin and set it up
Do not forget to hit Save at the bottom, navigate to your website and in a couple of minutes you should see recordings coming in to your account. That's it, you have managed to implement Smartlook on our WordPress site.
If you are facing any issues, do not hesitate to contact us via chat in your account or write to us at firstname.lastname@example.org.
Inserting the tracking script manually (alternative method)
If you do not want to use a plugin, you can insert code directly into the WordPress theme.
Be careful: you can destroy your site! Send this tutorial to your webmaster.
1. Copy the Smartlook tracking code
The tracking code can be found in your project settings in Smartlook, under Account → Projects → Tracking code (copy the code).
2. Insert the code to into WordPress
Appearance → Editor → Theme Header (header.php) → insert code → Update File