Verifying the install
You can verify that you correctly configured jExperience and jCustomer by performing the tests in this topic.
Verifying that visitors data can be sent to jCustomer
For each address defined as jCustomer public URL in Connection to jCustomer settings:
- Copy and paste the address to your browser and add
/context.json
. For instance: https://unomi.jahia.com/context.json. - Check that some JSON is sent back (starting with {"profileId":" ..) by jCustomer.
If your computer is on a VPN, you can try to reach the address from your phone to ensure that you're actually testing outside of your company network.
Verifying that profiles can be updated from the jExperience UI
In the Audience>Visitors panel, open any profile and update any property to a random value. Refresh the profile page and ensure that your change was saved. After, you can revert the change.
Verifying that personalization using the countries, states, regions and cities can be used
To verify personalizations using countries, states, regions and cities:
- Add a personalization on a random content, for example "content1".
- Add a second content variation, for example "content2".
- Open the variant conditions, reorder the variants for content2 to be above content1.
- For content2, set the conditions to custom => Geographic => Geolocation by country.
- Select the country you're currently in.
- Select the state, province, or region you're currently in.
- Click Save.
Verifying that the geolocation is working
To verify that the geolocation is working, perform the steps described above. If the country selection is successful:
- Publish your personalization.
- Go to Live mode.
- Verify that you see content2.
If you're on a VPN, you can either change the personalization condition to match your VPN location or test the personalization from your mobile.
Verifying that personalization using maps view can be used
To verify personalizations using the maps view:
- Add a personalization on another random content, for example "contentA".
- Add a second content variation, for example "contentB".
- Open the variant conditions, reorder the variants for contentB to be above content1.
- For content2, set the conditions to Custom>Geographic>Geolocation by point and click on "draw circle condition" below the map.
- Select the location where you're currently at.
- Click Save.
- Publish your personalization.
- Go to Live mode.
- Ensure that you see contentB.
If you don't see a map: It's very likely that the Google maps key is empty or wrong. Please check the value in jExperience>Settings>Connection to jCustomer
Verifying that Jahia user data is collected in jCustomer
To verify that Jahia user data is collected in jCustomer:
- Create a new Jahia User (from Jahia administration). For instance:
Login: jsmith
Password: jsmith00
First Name: john
Last Name: smith
- Logout of Jahia.
- Login with jsmith/jsmith00.
- Logout of Jahia.
- Login with your real user.
- Go to jExperience>Audience>Visitors.
The visitor John smith should appear - Open this profile.
- Check that the first name and the last name in the profile are matching the ones that you set in Jahia.
Verifying that internal searches are collected
If your website has a search form:
- In Live mode, type "test search" in your search form.
- Submit the form.
- Go to jExperience>Site Metrics>Internal Searches.
- Check that "test search" appears in the list.
Verifying that profiles are consolidated across sessions
To verify that profiles are consolidated across sessions:
- Open a test browser (for instance, use Chrome to edit content, configuration and personalization and Firefox only in live mode to ensure that you can recreate conditions of new visitors) : clean all your cookies.
- Open your website in live mode.
- Open the debug mode of your browser.
- Go to storage => cookies.
- Copy the value of "wem-profile-id".
- Close the test browser (really quit the application).
- Open the test browser again, with your website in live mode, in debug mode.
- Check that the value of "wem-profile-id" is still the same
In any situation and especially if one of the test above is not successful, you can contact the Jahia support team. You can also review the Elasticsearch, jCustomer cluster setup that is the documentation about how our IT team installed and configured jCustomer on the jahia.com servers.