close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Problem with Tracking Code

Thread began 3/15/2012 2:28 pm by fogelde373550 | Last modified 3/16/2012 3:04 pm by Jason Byrnes | 975 views | 5 replies |

fogelde373550

Problem with Tracking Code

I am trying to put a tracking code into the google pro maps and I am getting errors. I need some help.

Here is the current code:

<code>
infowindow: 'custom',
infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><?php echo str_replace("'", "\'", "<strong>Crenshaw Hyundai</strong><br /><strong>Address:</strong><br />330 Huffman Mill Road<br />Burlington, NC 27215-5177 USA "); ?></span>',
full: '330 Huffman Mill Road, Burlington, NC, 27215-5177, USA',
isdefault: false,
</code>

This is the old code that works:

<code>
infowindow: 'custom',
infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Crenshaw Hyundai</strong><br />330 Huffman Mill Road<br />Burlington, NC 27215-5177 USA<br /><a href=http://www.crenshawhyundai.net onclick="javascript: pageTracker._trackPageview(\'/outgoing/crenshawmap\');">Visit our website</a></span>',
full: '330 Huffman Mill Road, Burlington, NC, 27215-5177, USA',
isdefault: false,
</code>

So I am trying to put the website tracking code in the new map, but it is getting errors.

<a href=http://www.crenshawhyundai.net onclick="javascript: pageTracker._trackPageview(\'/outgoing/crenshawmap\');">Visit our website</a>



Please help.

I thought I fixed it with this code:

infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><?php echo str_replace("'", "\'", "<strong>Bob King Hyundai</strong><br /><strong>Address:</strong><br />1545 Silas Creek Parkway<br />Winston Salem, NC 27127-3757 USA"); ?><br /><a href=http://www.bobdunnhyundai.com onclick="javascript: pageTracker._trackPageview(\'/outgoing/bobdunnmapmap\');">Visit our website</a></span>',

But now the map doesn't show at all.

specialoffers/

Sign in to reply to this post

Jason ByrnesWebAssist

try using this code:

php:
infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><?php echo str_replace("'""\'""<strong>Bob King Hyundai</strong><br /><strong>Address:</strong><br />1545 Silas Creek Parkway<br />Winston Salem, NC 27127-3757 USA"); ?><br /><a href="http://www.bobdunnhyundai.com" onclick="javascript: pageTracker._trackPageview('/outgoing/bobdunnmapmap');">Visit our website</a></span>',





basically, you don't need to use \' there is a php function already doing that for you;
str_replace("'", "\'",


this is causeing:
javascript: pageTracker._trackPageview(\'/outgoing/crenshawmap\')

to become:
javascript: pageTracker._trackPageview(\\'/outgoing/crenshawmap\\')

Sign in to reply to this post

fogelde373550

OK. I tried it, but the page is still not loading.

The old code works fine here:

honda/

Sign in to reply to this post

Jason ByrnesWebAssist

hmm, i was wrong to have you remove the leading slashes, the replace code is working on another section of the info window, is not effecting the link.

change the code back to:

php:
infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><?php echo str_replace("'""\'""<strong>Bob King Hyundai</strong><br /><strong>Address:</strong><br />1545 Silas Creek Parkway<br />Winston Salem, NC 27127-3757 USA"); ?><br /><a href="http://www.bobdunnhyundai.com" onclick="javascript: pageTracker._trackPageview(\'/outgoing/bobdunnmapmap\');">Visit our website</a></span>',




once you have changed it back, i'll be able to get a better idea of the true cause.

Sign in to reply to this post

fogelde373550

I redid the whole thing. I don't have the tracking code in for all of them yet, just one, but it looks like it is working.

specialoffers/

I will keep you posted.

Are you guys ever going to update the software to set the zoom level? It is a huge pain with multiple addresses.

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

Pro maps is now offered as part of the Design Extender extension. In design Extender it has been updated to use the newer Google Maps V3 API, include choices for the map overlay type and setting the zoom level.


the stand alone version of pro maps is no longer offered and will not be updated to include any new functionality.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...