How can I track my WordPress user logins?
How to track user logins on my WordPress website
In order to track user logins form your website, you need to add the data to the user profile:
There are multiple ways to achieve this but we recommend to use a plugin called Code Snippets. Code Snippets allows you to add code to your site without the need to mess around with templates, etc
Once you have installed the plugin, simply create a new snippet and add this code:
Paste the above inside the snippet to to send us a signal when a user logs in to your system. This will add that first and lastname and email address to the visitor profiles. You can use any data available like usernames, LoginID, etc.
- Replace the datasetID with your own
- Enable the snippet to run everywhere.
- And don't forget to disable the regular LeadBoxer Wordpress plugin, or remove the tracking pixel from your templates, etc. as it is included in the above script.