plataforma_social 0.0.20 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
@@ -36,7 +36,7 @@ module PlataformaSocial
|
|
36
36
|
def load_user_data options = {}
|
37
37
|
settings = {
|
38
38
|
referral_code: params[:gm_referral_code],
|
39
|
-
source: params[:
|
39
|
+
source: params[:utm_source],
|
40
40
|
referrer: request.referer,
|
41
41
|
signed_request: params[:signed_request]
|
42
42
|
}.merge options
|
@@ -73,7 +73,7 @@ module PlataformaSocial
|
|
73
73
|
uri = URI.parse(PlataformaSocial.facebook_callback_url.to_s)
|
74
74
|
|
75
75
|
callback_url = if uri && uri.scheme.present?
|
76
|
-
uri.query = [uri.query, "gm_referral_code=#{params[:gm_referral_code]}", "source=#{params[:
|
76
|
+
uri.query = [uri.query, "gm_referral_code=#{params[:gm_referral_code]}", "source=#{params[:utm_source]}"].compact.join('&')
|
77
77
|
uri.to_s
|
78
78
|
else
|
79
79
|
nil
|