We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28914
    • 1 Posts
    Hi,
    I’m new to MODx so perhaps you find my question simple. But I can’t figure out how to insert different META-tags on each page.

    We will use WebTrends to analyse our webstatistics and we’ll need to insert the META-tags below to get it right.
    Of course we have to replace content with our own data (pagedata)

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html lang="sv">
    <head>
    <title>WebTrends Visitor Intelligence</title>
    <meta name="WT.ti" content="/Products/WebTrends Marketing Lab/WebTrends Visitor Intelligence ">
    <meta name="WT.cg_n" content="Products">
    <meta name="WT.cg_s" content="WebTrends Marketing Lab ">


    Explanation:
    WT.ti = Page Title and the pages hierarchy/navigation structure.
    WT.cg_n = Level 1 group
    WT.cg_s = Subgroup to Level1


    Anyone who knows how to do it?

    Urban
    Arvika, Sweden
      • 25663 MODX Staff
      • 12,272 Posts
      Create two template variables: [*WT.cg_n*] and [*WT.cg_s*]. Make sure to use friendly URLs in your configuration.

      In your headers of your template add the following:
      <meta name="WT.ti" content="[~[*id*]~]">
      <meta name="WT.cg_n" content="[*WT.cg_n*]">
      <meta name="WT.cg_s" content="[*WT.cg_s*] ">
      


      You’ll probably want to custom tweak your input option values for your TVs to make setting them more easy. For more usable results, use ManagerManager to move those fields to a new tab specifically for analytics.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me