Matomo追踪器部署系列之一:安装跟踪代码

依照下面的步骤即可找到对应的代码:

  1. 以管理员或者超级用户身份登陆Matomo
  2. 点击右上角菜单中的用户名旁边的小齿轮图标(Settings)访问管理功能
  3. 点击左菜单的Tracking Code

将Tracking Code复制并粘贴到网页的<body>标签之后或者放到<head>中

欢迎加入Matomo中文网官方QQ群255820112(点击滚动至本页末可扫描二维码),随时提问,有问必答。



在你的追踪代码中,{$PIWIK_URL}请用你的Matomo服务器地址进行替换,{$IDSITE} 请用你的网站ID进行替换。

这些代码对熟悉JavaScript的程序员来说可能有点奇怪。这种代码方式是为了方便异步运行。换句话说,浏览器无需等待piwik.js加载完成即可显示网页。

为了异步追踪,配置和追踪调用被追加到_paq数组中,它无需依赖piwik.js的异步加载,格式如下: _paq.push([ ‘API_method_name’, parameter_list ]);

你也可以将方法加入到_paq数组中以备执行。比如:

你也可以将方法加入到_paq数组中以备执行。比如:

var visitor_id;
_paq.push([ function() { visitor_id = this.getVisitorId(); }]);

或者比如,使用异步代码获取自定义变量(name, value):

_paq.push([‘setCustomVariable’,’1′,’VisitorType’,’Member’]);
_paq.push([ function() { var customVariable = this.getCustomVariable(1); }]);

即使在piwik.js加载并运行之后,也可以将执行代码加入_paq数组。 如果你的Matomo追踪代码和上面展示的有所区别,那可能是你的版本已经不推荐使用了。老版本仍然可以工作,但我们强烈建议你使用最新版本的追踪代码。

《Matomo追踪器部署系列之一:安装跟踪代码》有685条评论

  1. Join the top-notch world of online gaming where endless fun awaits. Bovada offers top table games and no-deposit bonuses for all players. With Bovada, enjoy thrilling wins and secure, reliable entertainment every day!

  2. La sante est un droit, la rendre accessible est notre mission. Nous vous offrons le meilleur de la pharmacie sans les contraintes geographiques. Explorez notre univers et laissez-vous guider vers les produits adaptes a vos besoins. Respirez, votre pharmacie est en ligne.eurax

  3. Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  4. I do accept as true with all the concepts you have introduced for your post.
    They’re very convincing and will definitely work. Still, the posts are very brief
    for novices. May you please prolong them a little from subsequent time?
    Thank you for the post.

    my web page; best blackjack game online, Zandra,

  5. I used to be suggested this website by way of my cousin. I am no longer sure whether this post is written by him as no one else recognise such
    exact approximately my problem. You are amazing! Thanks!

    Also visit my page … was heißt hc 0 7 5 2 bei basketball wetten – Molly

  6. united kingdom online casino minimum deposit dollar 10, is it legal to
    play online slots in australia and run it once poker canada, or is double down casino rigged – Bianca
    – online gambling taxable in australia

  7. 150 free spins australia, new zealandn tourister slot instellen and
    las vegas usa casino online casino mit cashback
    (Geraldo) no deposit bonus codes, or free no deposit casino uk 2021

  8. new united states online casino free spins, susanville
    virtual casino night at home [Quinton] and no deposit free bonus spins usa aug, 28,2021, or real money online roulette united states

  9. prepaid visa for online gambling uk, united kingdom online casino real money free
    bonus and new zealand gambling sites, or best australia casino app

    Feel free to surf to my web page craps pro system – Shavonne,

  10. new online canadian casino, free spins new casino usa and online casino uk
    pay by mobile, or are there casinos in usa

    Stop by my website … how to win gamble machine – Monte

  11. online casino winners usa, no deposit canada casino bonus
    and best casinos in central united states, or no deposit
    bonus sign up casino united states

    Also visit my website … why is gambling
    called gaming (Starla)

  12. best usa piggy bank no deposit bonus (Christal) deposit bonus codes
    2021, new zealandn express zahlung online casino and casino gananoque ontario canada, or free united statesn slot machine games

  13. sms casino deposit australia, best united kingdom online casino slots
    and australian casino apps, or deposit 10 get usa

    Feel free to surf to my blog post :: what is the roulette wheel called – Astrid

  14. new 2021 usa players online casino, new zealandn online casinos no deposit and
    new united states online casino games, what is the probability of getting craps or an even sum
    on one roll of the dice (Shela) las vegas
    usa casino $100

  15. no deposit casino bonus codes cashable 2021 usa, can i play online
    pokies in australia and no registration casino usa, or canadian online casino how many chips
    for blackjack (Celsa) uk

  16. ladbrokes slots uk, united statesn online real money poker
    sites and new zealandn online pokies minimum $5 most
    recent no deposit bonus codes (Winona), or best rated united kingdom online casino

  17. native united statesn casino rights, real usa online casino and casino apps for real money australia, or casinos in united
    states online

    Feel free to visit my webpage; professional gambling forum – Ira

  18. united statesn online pokies review, slot free spins no deposit
    uk and no deposit casino bonus usa august 2021, or online casino reviews united states

    Here is my web page :: gambling issues (Hung)

  19. united kingdom casino area rugs (Susanne) down game load machine
    no play slot, bingo online for money australia and best real money pokies australia with neosurf, or canadian online casino
    sign up no deposit bonus

  20. united statesn casino crypto reels no deposit bonus free spins [Horace]
    deposit free spins, slots ironman lausaarote and best
    bingo sites uk 2021, or are there pokies in western new zealand

  21. united kingdom casino slots tips diagnostic screen for gambling
    disorders nods-clip (Magaret),
    uk no deposit casino and no deposit bonus codes casino canada,
    or best online casinos australia 2021

  22. united states online casino real money, new united states based onine riu palace aruba casino
    reviews (Elena) and no deposit slots usa, or safe online casino australia

  23. united statesn online casino free spins sign up, casino bonus uk and slot machines are called in canada, or online
    casino not in uk

    Here is my homepage … how to make a craps table (Lashay)

  24. usa bingo search pound, mict tabs slot usage and play slots for real money usa, or online casino allowed in united states

    Review my web site … are 2p machines gambling – Elva,

  25. united kingdom casino down game load machine no play slot, is it legal to play online slots in australia and united statesn pokie
    machine hack, or trusted uk casinos

    Feel free to surf to my web page; acma registered gambling (Quinton)

  26. pokies online australia reviews, united statesn online real
    money poker sites and online pokies paysafe united states,
    or pokies online hallmark casino free chip codes 2021 [Emilio]
    australia

  27. 888 poker login united states, real money united
    statesn pokies and no wagering casino bonuses
    uk, or craps guide uk

    Feel free to visit my website bingo cards 1-75 (Buster)

  28. online pokies australia 5 dollar deposit, free casino slots in united
    states and deposit now pay later four leaf casino play to
    win (Dominik)
    united states, or best canada poker sites

  29. top online pokies and casinos united states information, no 1 casino (Nick) chips
    value usa and poker run thousand islands 2021, or online casino slots real money canada

  30. no deposit mobile casino bonus uk, top ten online casinos united states and free online united kingdom
    casino, or best online casino to play in united states

    My site … doritos roulette chips (Edgar)

  31. no wager united statesn casino, slot machine australia and no
    deposit bonus uk poker, or new casino bonus uk

    Also visit my web site; how to make money on craps (Sonia)

  32. big usa poker tournaments, casino games canada and casinos
    in central united kingdom, or new casino why are there no casinos in nyc –
    Thao, deposit
    bonus 2021 uk

  33. pokies online australia reviews, free online pokies
    no downloads usa and free bonus no deposit john lennon epiphone casino
    specs (Lorenzo) usa,
    or is top online pokies and casinos united states pokies

  34. united kingdom online casino real money no deposit bonus, online live roulette canada and best uk casino slots,
    or no deposit bonus bingo united states

    My blog thesaurus gambling (Tracy)

  35. canadian poker machine game download, new usa south african gambling games; Elizabet, sites and new australian online casinos no deposit
    bonus, or is top online pokies and casinos united states pokies

  36. gambling costs in australia, united statesn how old do
    you have to be to gamble at eagle mountain casino [Chana] minimum deposit dollar 10 and cash freuky casino free chips,
    or united statesn online no deposit pokies

  37. best usa no deposit bonus 50 euro (Tegan) deposit bonus codes 2021, online
    casino usa reddit and slot machines sale united states, or top online pokies and casinos canadian free games

  38. quatro casino canada, united statesn online real money poker
    sites and united kingdom online poker news, or no deposit bonus casino
    microgaming australia

    Feel free to surf to my web site; how to control greed in gambling; Colin,

  39. best no deposit casino usa, best casino united states online
    and deposit now pay later casino united states, or united kingdom online casino 10 minimum deposit

    Feel free to visit my blog post bermuda gambling casinos;
    Vince,

  40. usa gambling websites, biggest casino top 10 casinos in the caribbean (Aline) ontario united
    kingdom and usa accepted casino, or online poker with united statesn funds

  41. canadian approved online casinos, mini slot machine united states and australian online no deposit casino,
    or online casinos usa friendly

    Here is my web-site: when do you double down in blackjack (Jerold)

  42. gambling taxes australia, do casinos pay out in cash uk and usa online casino for usa players, or australia online gambling stock

    my web blog; pibingo flashlight (Lila)

  43. ruby fortune online pokies canada, $5 minimum deposit roo casino no
    deposit bonus 2022 (Noemi) new zealand 2021 and
    casinos for gambling for usa, or the blackjacks homepage australia

  44. milwausaee wisconsin casino, betsoft no deposit bonus united kingdom and top online pokies and casinos canadian league,
    or new no deposit bonus casino australia

    Here is my website … bingo with numbers 1-20 (Estela)

  45. Если хотите найти автошкола в иркутске цены на обучение которая действительно оправдает ожидания, значит вы нашли именно то, что искали. В автошколе опытные инструкторы, современный автопарк и удобный график занятий. Обучение легко совмещать с работой или учебой благодаря гибкому расписанию и дистанционной теории. Именно такое предложение многие ищут месяцами.

发表评论

ICP证:苏ICP备15038038号-2