Developing on localhost

Why

For developers it is practical to develop experiments on a local web server while developing them. When using Convert QA audiences it is not actually necessary, nevertheless some people prefer this method of development. 

How

Convert has no issues if you install its tracking code on pages on a web server installed on your local machine. However, you need a fully qualified domain name as a domain like "localhost" or "mymachine" wont work. A fully qualified domain is required for the tracking script to run and write the required cookies it uses to function. 

Even if you don't own, or have control of a domain and it's DNS settings, you can use whatever qualified domain you like as "domain.com", "mymachine.com", etc. 

The way to do it is to edit the "hosts" file on your machine and put an entry to point to your own IP address.

Example:

domain.com   127.0.0.1

127.0.0.1 usually stands as an alias for your own machine, so it is safe to use it.

Be sure that the domain matches the domains in your Projects' Active Websites and also the Site Area of your experiment.  Also, make sure your goals URL settings can be matched to the domain you are using.

If you are using your local machine to develop, make sure you choose a different domain than the one used on your live site to prevent launching experiments on your live site in the same Project.

Have more questions? Submit a request

Comments