Collapse Menu
Classic Docs
Digital Products and Fulfillments
Order Page Config, Design and Page Flow
Advanced Features
Subscriptions and Saasy
Your Account
Contact Support

Tips for Valid XHTML Snippets for External Tracking

Overview

This article provides information about Tips for Valid XHTML Snippets for External Tracking

 

A few tips for valid XHTML code:

  1. Each element must be a single element. For example, the following code will not validate:
     
    <script>...</script>
    <script>...</script>

    In order to make the code validate, you must add a <div> tag around the non-single elemnets, as shown below.

    <div>
    <script>...</script>
    <script>...</script>
    </div>
  2. With the newer XHTML standards, you cannot just include JavaScript between the script tags without potentially breaking validation. To fix this problem, use the tag <![CDATA[ ...]]> around the JavaScript code, as shown below.

    <script>
    <![CDATA[ 
    ... 
    ]]>
    </script>

Try FastSpring

Get a free account and see why FastSpring is the ecommerce partner of choice for software providers around the world. Try our full-service ecommerce solution today to unlock revenue growth for your online company.

Important Notice

This documentation library is intended for FastSpring's Classic Platform users. If you use the url springboard.fastspring.com to log in to your FastSpring Store, you are a Classic Platform user.

Please visit fastspring.com/docs to access our latest documentation.

Continue to Classic documentation

Hide Notice for 30 Days