Menu

Adding Metrics after the fact?

2006-05-09
2013-04-03
  • Amanda Hickman

    Amanda Hickman - 2006-05-09

    Now that I've got FT up and running, I realize that I should have added metrics earlier. Rather than starting from scratch is there a way that I can manually change my database?

     
    • Amanda Hickman

      Amanda Hickman - 2006-05-09

      I want the default for sign ups to be to opt in to email updates. I don't see a place to set that.

      thanks,
      Amanda

      PS, if you answer, I promise to write up the answers nicely and add them to the wiki ...

       
      • Michael Frumin

        Michael Frumin - 2006-05-09

        to do that, you will need to edit the various form html templates, such as ft/style/templates/campaign/form-accept.tpl and form-register.tpl

         
        • Amanda Hickman

          Amanda Hickman - 2006-05-09

          Cool. The templates sort of make it sound like they are looking for a value someplace to decide whether to default to opt-in. I was wondering if that value existed, sounds like no. I'll edit the template.

          My campaign (I'm just tinkering with it) is a letter writing pledge, so one thing I want to know is "did you send a letter."

          I'm also asking for addresses.

           
          • Michael Frumin

            Michael Frumin - 2006-05-09

            well, yeah.  you could replace

            <input type="checkbox" name="register[values][person][opt_in]" value="1" {if $FT.post.register.values.person.opt_in}checked{/if}>

            with just
            <input type="checkbox" checked>

            OR, go into lib/FT/App/Person.class.php and change

                  'opt_in' => null,

            to

                  'opt_in' => 1,

            that might work too.

            -mike

             
    • Michael Frumin

      Michael Frumin - 2006-05-09

      um, yeah -- just add the right 'double' columns to the ft_node and ft_stats and ft_map_data tables.

      so, for example, if you wanted to add a whales_saved metric, add a stat_whales_saved column to ft_stat, node_whales_saved to ft_node, and map_data_whales_saved to ft_map_data

      thanks,
      mike

       
    • Michael Frumin

      Michael Frumin - 2006-05-09

      PS -- what metrics?  I am interested.

       

Log in to post a comment.

MongoDB Logo MongoDB