Customizing your embed
Below are the current variables you can use to customize your TrackThePack installation.
The only required variables are ttp_number and
ttp_key. See the table below for an explanation of
each variable.
| Parameter | Value | Required? | Description |
|---|---|---|---|
ttp_number |
string | Yes | The actual tracking number of the package you are tracking. |
ttp_key |
string | Yes | This is your unique key for your account. Do not edit or remove. |
ttp_width |
positive integer | No | Sets the width of the iframe that is used to embed the tracking info. Defaults to 575. |
ttp_height |
positive integer | No | Sets the height of the iframe that is used to embed the tracking info. Defaults to 700. |
ttp_m_width |
positive integer | No | Sets the width of the map. Defaults to 260. |
ttp_m_height |
positive integer | No | Sets the height of the map. Defaults to 200. |
ttp_debug |
true/false | No | Puts your embedded code into debug mode (useful for CSS customization). Defaults to false. |
Here is an example showing additional variables added to the embed code:
<script type="text/javascript">
var ttp_number = "1234567890";
var ttp_width = 850;
var ttp_height = 650;
var ttp_m_width = 260;
var ttp_m_height = 200;
// Do not edit below
var ttp_key="123456abcxzy";(function(){document.write('<div id="ttp"></div>');s=document.createElement('script');s.type="text/javascript";s.src="http://c.trackthepack.com/j/e?" + Math.random();setTimeout("document.getElementById('ttp').appendChild(s);",1);})()
</script>