close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Piping in GoogleAnalytics

Thread began 1/27/2012 1:41 am by bill173836 | Last modified 1/27/2012 1:21 pm by bill173836 | 544 views | 7 replies |

bill173836

Piping in GoogleAnalytics

I'm storing google analytics in a database field and then displaying it in the head of my documents. The problem is: If I add the google analytics directly in the database it works fine but if I use DataAssist the textfield that contains the google analytics code looks fine but if I update the table the piping code gets converted to & # 1 2 4 ;& # 1 2 4 ; (spaces added to prevent the piping from showing up here) and on the document pages the piping is gone and the markup code is now in the place of the piping.

var _gaq = _gaq || []; <-------------------- Piping Correct
_gaq.push(['_setAccount', 'UA-77777777777']);
_gaq.push(['_trackPageview']);


var _gaq = _gaq & # 1 2 4 ;& # 1 2 4 ; []; <------------------ Piping Missing
_gaq.push(['_setAccount', 'UA-77777777777']);
_gaq.push(['_trackPageview']);

Sign in to reply to this post

Jason ByrnesWebAssist

send da copy of the insert and update pages please. also a page where you are displaying the.analytics.

Sign in to reply to this post

bill173836

Here ya go. I'm not using an insert file every site I create has this database field and the database has default values that get updated. You can find the code used on this page http:index.html

Attached Files
update.zip
Sign in to reply to this post

Jason ByrnesWebAssist

on the update page, there is code to convert the pipe to the html entity, this is done beacuase data assist uses the pipe as a column separator.

if you send a copy one of your pages that you are displaying the goole code from the database, I can show you how to convert the html entity back to a pipe.

Sign in to reply to this post

bill173836

I guess I should note that in a previous post I was having another issue with the || in a google analytics. I used the code that you gave me to convert the || to markup code. I guess the problem is that when it gets displayed in the end document the markup code isn't showing up as ||.

Sign in to reply to this post

bill173836

Here ya go.

Attached Files
indexfile.zip
Sign in to reply to this post

Jason ByrnesWebAssist

change:

php:
<?php echo $row_rsSiteInfo['siteGoogleAnalytics']; ?>



to:

php:
<?php echo(str_replace("& #124;""|"$row_rsSiteInfo['siteGoogleAnalytics'])); ?>



remove the space from & #124

Sign in to reply to this post

bill173836

Thanks, that resolved the problem.

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...