Use {Literal} Smarty Tag to Add Google Analytics Tracking Code to BlogSome Hosted Blogs Gamitin ang (Literal) Smarty Tag Idagdag sa Google Analytics Code sa Pagsubaybay sa BlogSome Hosted Blogs

BlogSome is a free WordPress based web hosting service, which has been a popular choice before arrival of WordPress.com for bloggers who want a WordPress blogging platform without forking out a dime. BlogSome ay isang libreng WordPress base serbisyo ng web hosting, na kung saan ay isang popular na pagpipilian bago dumating ng WordPress.com para sa mga blogger na gustong WordPress isang blogging platform na walang forking out ng barya. Even BlogSome still uses the legacy WordPress version 1.5.1-alpha, it still attract some bloggers as it allows blogger to add and place own ads such as Google AdSense on the blog. Kahit BlogSome pa rin ay gumagamit ng legacy bersyon ng WordPress 1.5.1-alpha, ito pa rin ang makaakit ng ilang mga blogger na ito ay nagpapahintulot sa blogger na idagdag at lugar na sariling ads tulad ng Google AdSense sa blog.

BlogSome has been using Smarty template engine as its presentation framework. BlogSome ay gumagamit ng template Smarty engine nito pagtatanghal framework. As a result, when user adds Google Analytics tracking code by placing either new tracking code (ga.js) or legacy tracking code (urchin.js) in BlogSome HTM source code (accessible via Manager -> Files), the following error occurs when any web pages on the blog is opened or visited. Bilang isang resulta, kapag ang gumagamit ay nagdadagdag ng pagsubaybay ng Google Analytics na code sa pamamagitan ng paglalagay ng alinman sa mga bagong tracking code (ga.js) o legacy ng code sa pagsubaybay (urchin.js) sa BlogSome code htm source (mapuntahan sa pamamagitan ng Manager -> Mga file), ang sumusunod na error na nangyayari kapag ang anumang web mga pahina sa blog ay binuksan o binisita.

Smarty syntax error Smarty syntax error

File index.html, line 280: syntax error: File index.html, line 280: syntax error:
unrecognized tag 'var' var Hindi kilalang tag ''

If you own this blog, and wish to fix this problem, you can log in here. Kung ang sarili mo sa blog na ito, at nais na ayusin ang problemang ito, maaari kang mag-log in dito.

Google Analytics Tracking Code BlogSome Error

The error happens because Smarty template engine attempts to translate and interpret some keywords in Google Analytics tracking code that conflict with Smarty template delimiter syntax. Ang error ang mangyayari dahil Smarty template pagtatangka engine upang isalin at mabibigyang-kahulugan ang ilang mga keyword sa Google Analytics tracking code na sumasalungat sa Smarty template Delimiter syntax. As a workaround, Smarty does provide tags, Bilang isang workaround, Smarty ay magbigay ng mga tag, {literal} and {/literal} literal () at (/ literal) , which allows a block of data to be taken literally. , Na nagbibigay-daan sa isang bloke ng data sa ay dadalhin literal.

{literal} tags are typically used around Javascript or stylesheet blocks where {curly braces} would interfere with the template delimiter syntax. () literal na mga tag ay karaniwang ginagamit sa paligid ng Javascript o stylesheet na kung saan ang mga bloke (kulot tirante) Gusto makagambala sa ang template Delimiter syntax. Anything within {literal}{/literal} tags is not interpreted, but displayed as-is. Kahit ano sa loob ng literal () (/ literal) tags na ito ay hindi interpreted, ngunit ipinapakita bilang-ay. It means anything inside the tags will be appeared exactly the same in the final HTML output for web browser to interpret, and no change will be done by Smarty engine. Ito ay nangangahulugan na anumang bagay sa loob ng mga tag ay lumitaw nang eksakto ang parehong sa pangwakas na HTML na output ay para sa mga web browser na bigyan ng kahulugan, at walang pagbabago ang gagawin sa pamamagitan ng Smarty engine.

Thus, to fix Google Analytics tracking code error on BlogSome, just embed the tracking code with {literal} before Google Analytics Javascript code, succeeding with {/literal} after the tracking. Samakatuwid, upang ayusin ang Google Analytics tracking code error sa BlogSome, i-embed ng code sa pagsubaybay sa () literal na bago sa Google Analytics sa code ng Javascript, succeeding sa (/ literal) matapos ang pagsubaybay. For example, Halimbawa, ang

{literal} (literal)
Google Analytics Tracking Code Append Here Pagsubaybay ng Google Analytics Code Append Narito
{/literal} (/ literal)

IMPORTANT : The page is machine translated and provided "as is" without warranty. MAHALAGA: Ang pahina ng makina ay isinalin at ibinigay "bilang ganito" walang warranty. Machine translation may be difficult to understand. Machine pagsasalin ay maaaring mahirap maintindihan. Please refer to Mangyaring sumangguni sa original English article orihinal na Ingles na artikulo whenever possible. hangga't maaari.


One Response to “Use {Literal} Smarty Tag to Add Google Analytics Tracking Code to BlogSome Hosted Blogs” One Response sa "Gamitin ang (Literal) Smarty Tag Idagdag sa Google Analytics Code sa Pagsubaybay sa BlogSome Hosted Blogs"

  1. @hmad @ hmad
    September 4th, 2009 10:24 4 Septiyembre 2009 10:24
    1 1

    i try to search for tutorial to add google adsense in to free wordpress blog ako subukin sa paghahanap para sa tutorial na idagdag ang google adsense sa wordpress libreng blog

Leave a Reply Iwanan ng isang Sumagot

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Maaari mong gamitin ang mga tag: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Mag-subscribe sa mga komento na katangian ay hindi pinagana. To receive notification of latest comments posted, subscribe to Para makatanggap ng mga paalala ng mga pinakabagong mga puna, mag-subscribe sa My Digital Life Comments RSS feed Aking Digital Life Comments RSS feed or o register to receive magrehistro upang makatanggap ng new comments in daily email digest. mga bagong komento sa pang araw-araw email digest.
Custom Search

New Articles Bagong Akda

Incoming Search Terms for the Article Papasok na Kataga sa Paghahanap para sa mga Artikulo

smarty google analytics smarty google analytics - -- analytics smarty error analytics smarty error - -- Google Analytics JavaScript changes Google Analytics ng JavaScript sa mga pagbabago - -- smarty where literal need smarty kung saan ang mga literal na kailangan - -- where to put google tracker in free wordpress kung saan ilagay tracker ang google sa libreng wordpress - -- add google analytics tracking code to windows live idagdag ang google analytics tracking code sa mga bintana ng live - -- adding analytics to free wordpress pagdaragdag ng analytics sa libreng wordpress - -- add wordpress web hosted blog to google analytics magdagdag ng wordpress web host blog sa google analytics - -- google analytics code error google analytics code error - -- google analytics smarty google analytics smarty - -- hosted wordpress html literal naka-host wordpress html literal - -- php smarty literal php smarty literal - -- add google anaytics ccode as blogger HTML/Javascript gadget idagdag ang google anaytics ccode ng blogger ang HTML / JavaScript gadget - -- google analytics on smarty templates google analytics sa smarty template - -- inserting google analytics tracking code into wordpress pagpasok ng google sa pagsubaybay sa analytics tracking code sa wordpress - -- iphone+how toadd google ads code iphone + kung paano toadd google ads code - -- literal code google analytics literal na code sa google analytics - -- php smarty analytics php smarty analytics - -- smarty interpret smarty mabibigyang-kahulugan - -- smarty interpret as html smarty mabibigyang-kahulugan bilang html - -- smarty literal code smarty literal na code - -- where to put google analytics code in a blog kung saan ilagay ng google analytics code na ito sa isang blog - -- add google analytics to smarty tpl file idagdag ang google analytics upang smarty tpl file - -- best place to add google tracking code in a wordpress tempplate pinakamagandang lugar na idagdag ang google code sa pagsubaybay sa isang wordpress tempplate - -- google analytics php smarty error google analytics php smarty error - -- how google analytics smarty termplate kung paano google analytics smarty termplate - -- syntax error: unrecognized tag 'literal' smarty syntax error: Hindi kilalang tag 'literal na' smarty - --