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.
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.
Related Articles Mga Kaugnay na Akda
- WordPress Plugin: Display Google Analytics and FeedBurner Reports Statistics from Site Admin WordPress Plugin: Ipakita ang Google Analytics at ang FeedBurner Ulat Statistics mula sa Site Admin
- Official Google Analytics Blog Offers Tips and Information Opisyal na Google Analytics Blog Alok Tips at Impormasyon
- How to Remove or Delete (Unlink) Google AdSense and Analytics Integration Paano Alisin o Tanggalin (unlink) Google AdSense at Analytics Pagsasama-sama
- Add and Embed Google Universal Gadgets Modules to Websites and Blogs Magdagdag ng Embed at Universal Google Gadgets Modules sa Websites at Blogs
- Free Google Trifecta Webinar on Webmaster Tools, Analytics and Website Optimizer Libreng Google Trifecta Webinar sa Webmaster Tools, Analytics at Website Optimizer
- Implement Ad Revenue Sharing in Blogger (Supports Google AdSense And Any Code) Ipatupad ng Ad Revenue Sharing sa Blogger (sumusuporta sa Google AdSense At Anumang Code)
- How to Add and Publish SPF Records for Google Apps Hosted Domains Paano Magdagdag at publish SPF Records para sa Google Apps Hosted Domains
- Search for Humyo Hosted Files Download Links with Google Maghanap para sa Humyo Hosted file Download Links gamit ang Google
- Flight Tracking Tool by Google Pagsubaybay ng Flight Kasangkapan ng Google
- Add and Put AdSense Ads Code and JavaScript to Google Page Creator Website Magdagdag at Ilagay sa AdSense Ads Code at JavaScript sa Google Page Creator ng Website










































September 4th, 2009 10:24 4 Septiyembre 2009 10:24
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