November 08, 2017
When testing many facets of the OptinMonster embed code I find myself needing a clean & quick HTML page on almost a daily basis. For most tasks throwing some code into JSFiddle will do, but testing some of our more advanced targeting rules becomes onerous, if not impossible.
So without further ado, my process:
> npm i -g serve
I first create a new temporary directory and add an
> mkdir om-test && cd om-test > touch index.html
I then place some boilerplate HTML in
index.html along with the OptinMonster embed code.
<html> <head><title>OptinMonster Test</title></head> <body> <h1>I'm OptinMonster Testing Rick!</h1> <!-- OptinMonster embed code goes here --> </body> </html>
Back in the terminal and in the temporary directory, start the server with
Once you see “Serving!” your page is ready to go!
You can now see the test page at http://localhost:5000.
Hi! My name is J. Aaron Eaton. I help create amazing web experiences. You should follow me on Twitter