Skip to content

Commit

Permalink
PA-210 Add analytics info to links from layar application
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Jan 8, 2011
1 parent 45286b8 commit c5a3ce2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/layar_controller.rb
Expand Up @@ -9,7 +9,7 @@ def getpoi
lines = word_wrap(a.description, :line_width => 35).split("\n")
line4 = truncate(lines[2..-1].join(" "), :length => 35) if lines[2..-1]
{
:actions => [{:label => "More info", :uri => application_url(:host => Configuration::HOST, :id => a.id)}],
:actions => [{:label => "More info", :uri => application_url(:host => Configuration::HOST, :utm_medium => 'ar', :utm_source => 'layar', :id => a.id)}],
:attribution => nil,
:distance => a.distance.to_f * 1000,
:id => a.id,
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/layar_controller_spec.rb
Expand Up @@ -22,7 +22,7 @@
"actions" => [
{
"label" => "More info",
"uri" => "http://localhost:3000/applications/101"
"uri" => "http://localhost:3000/applications/101?utm_medium=ar&utm_source=layar"
}
]
}
Expand Down

0 comments on commit c5a3ce2

Please sign in to comment.