I'm using oneall social plugin on my WordPress site essentially to register new user trial accounts to my saas business.
To register for the trial the user would be able to choose from 2 options:
- sign in via a custom form, or
- sign in via oneall social plugin (facebook & linkedin)
When the user chose to register via the custom form, he will be asked to enter a corporate email and his name. But there are some hidden fields that we are using to save utm_source, utm_medium, utm_campaign and some other fields, so we can keep tracking of the channels and campaigns that are converting.
The code looks something similar to this:
// First whe run a code to parse the url and then we
// pass it to some variables
var source = getParameterByName('utm_source');
var medium = getParameterByName('utm_medium');
var campaign = getParameterByName('utm_campaign');
// And then we pass the values of variables to the respective hidden fields
document.getElementsByName("field").value = medium;
document.getElementsByName("field").value = source;
document.getElementsByName("field").value = campaign;
This is working great.
So now my question is this: How can I save those same parameters when users chose to sign in via oneall plugin?
Without that info, I can't have any clue from where that user is coming from and which campaign generated the lead.