mirror of
https://github.com/neocities/neocities.git
synced 2025-07-31 23:06:14 +02:00
track where ga signups come from
This commit is contained in:
parent
d3dfdc850c
commit
f2e0b1dba7
2 changed files with 6 additions and 1 deletions
|
@ -58,7 +58,8 @@ post '/create' do
|
|||
email: params[:email],
|
||||
new_tags_string: params[:new_tags_string],
|
||||
is_education: params[:is_education] == 'true' ? true : false,
|
||||
ip: request.ip
|
||||
ip: request.ip,
|
||||
ga_adgroupid: session[:ga_adgroupid]
|
||||
)
|
||||
|
||||
if education_whitelisted?
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
get '/?' do
|
||||
if params[:_ga_adgroupid]
|
||||
session[:ga_adgroupid] = params[:_ga_adgroupid]
|
||||
end
|
||||
|
||||
if current_site
|
||||
require_login
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue