Learn how to set up Locadapt for local development and testing
If you are a developer looking to integrate Locadapt into your local development workflow or test on non-production domains, follow these steps:
localhost
projectAdd Locadapt scripts
To use Locadapt in your local development environment, add these two script tags to the <head>
of your HTML file:
You can find these scripts ready to copy, along with your project ID, on the Configuration page for your Locadapt project.
Set up local development key
To enable Locadapt on localhost or other non-production domains:
Replace YOUR_SECRET_KEY
with your actual secret key or copy the entire snippet directly from your dashboard.
This sets a cookie allowing Locadapt to function on test domains.
When deploying Locadapt to your own production site:
Testing on live sites you don't own
For testing Locadapt on live production sites that you don’t own or control (such as for client demos or our own demonstrations), you can use a browser extension similar to Tampermonkey:
localStorage
(same as optional step 3, local development, on the configuration page).This method injects Locadapt into any site for demonstration purposes without affecting the actual site for other users.
Track changes and collaborate by keeping your Locadapt configuration in version control.
Never commit or share your local development key. Use environment variables or secure vaults for sensitive information.
Regularly check for updates to Locadapt’s scripts and documentation for the latest features and best practices.
Reach out to our dedicated support team for any questions or assistance during your development process.
For more detailed information on integrating Locadapt into your development workflow, reach out to the team or check out the API Reference page.
Learn how to set up Locadapt for local development and testing
If you are a developer looking to integrate Locadapt into your local development workflow or test on non-production domains, follow these steps:
localhost
projectAdd Locadapt scripts
To use Locadapt in your local development environment, add these two script tags to the <head>
of your HTML file:
You can find these scripts ready to copy, along with your project ID, on the Configuration page for your Locadapt project.
Set up local development key
To enable Locadapt on localhost or other non-production domains:
Replace YOUR_SECRET_KEY
with your actual secret key or copy the entire snippet directly from your dashboard.
This sets a cookie allowing Locadapt to function on test domains.
When deploying Locadapt to your own production site:
Testing on live sites you don't own
For testing Locadapt on live production sites that you don’t own or control (such as for client demos or our own demonstrations), you can use a browser extension similar to Tampermonkey:
localStorage
(same as optional step 3, local development, on the configuration page).This method injects Locadapt into any site for demonstration purposes without affecting the actual site for other users.
Track changes and collaborate by keeping your Locadapt configuration in version control.
Never commit or share your local development key. Use environment variables or secure vaults for sensitive information.
Regularly check for updates to Locadapt’s scripts and documentation for the latest features and best practices.
Reach out to our dedicated support team for any questions or assistance during your development process.
For more detailed information on integrating Locadapt into your development workflow, reach out to the team or check out the API Reference page.