What is the version of the following sentence with correct punctuation?

Some websites will also use cookies to enable them to target their advertising or marketing messages based for example on your location andor browsing habits
Some websites will also use cookies to enable them to target their advertising or marketing messages based, for example, on your location and/or browsing habits.