PHP Get Referrer - If Referrer Is An Application - php

We can get the referrer site with "$_SERVER['HTTP_REFERER']". However, if the incoming person clicked on the link in an application, how can I detect it? For example, how can I detect if the visitor came to my page by clicking on the link in the whatsapp message. Here, the link address clicked with "$_SERVER['HTTP_REFERER']" is obtained. How can I get the information that the person who came here has come from applications such as whatsapp, telegram, messenger.
Thanks.

Related

Don't hit website php script from SMS preview

I have a webpage that I am using for redirecting users on Page Load it first updates the record in my table Ex. visited for users and after that, I redirect the user to another page.
Everything is working great but somehow I noticed that lots of users are visiting the web page but I can't track them on Google Analytics & after doing research I found that this is happening because of SMS link preview features.
Due to that, the preview appears on mobile but the user doesn't click on SMS and the table got updated as visited for that user.
Can anyone please help me to prevent the table update from SMS preview? Thanks in advance.
I have tried to add link in between the SMS.
I have tried removing https:// http:// fromthe begining of the URL

Facebook Ads from Instagram in website analytics. UTM_source is showing facebook but uc_referrer and uc_last_referrer is showing Instagram

Please help me I have get uc_referrer http://instagram.com/ and uc_last_referrer http://instagram.com/ and UTM_source is showing Facebook. Can you please tell me from where is user coming in my website?
UTM_source:
UTM parameters in a URL identify the marketing campaign that refers traffic to a specific website. UTM_source specifically identifies which site sent the traffic, and is a required parameter. https://en.wikipedia.org/wiki/UTM_parameters
Referer:
I didn't find any documentation about uc_referrer or uc_last referrer, but Referer according to Mozilla (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) refers to :
the address of the previous web page from which a link to the currently requested page was followed
So it seems like UTM_source is the advertiser traffic source. And referrer is the website link that a user is coming from, which is what you are looking for.

$_SERVER['HTTP_REFERER'] won't get HTTP_REFERER from facebook messenger app

I have a script that get the $_SERVER['HTTP_REFERER'] when a user visits my page. This works great if it is used on facebook for desktop. But if a user click the link in the mobile app facebook messenger it can't get any HTTP_REFERER.
Anyone have a solution for getting info about if the user clicked a link in the facebook messenger app?
The problem is that when a user clicks on a link the the facebook app, it isn't being redirected, but opened. Since the app isn't a web browser.
If you wanna track where people open your site from, you could parse in a UTM code (just a _GET parameter, but globally used to track origin, many sites like google also uses these, and some even auto append them.).
For more info, see the following article: http://www.launchdigitalmarketing.com/seo-definitions/what-are-utm-codes/

Invite Facebook's friends from own website

When someone visits my web page, I would like to enable him to share the visited web page on his facebook friend's wall, so that other people can also click on the shared link to come on the visited webpage.
Condition: The visited webpage should appear on the facebook wall of selected friends and I would like to throw an user-id with the link so that when someone clicks on the link on facebook wall, when he comes on the web page I can identify who did share the web page by his user-id.
I did try: the facebook send button, link button, send dialog and feed dialog, but somehow none of these meet the requirements above. Thank you so much for answering!
Is this something you looking for? ->https://floating-headland-9554.herokuapp.com
i created a invite friend button at the page for me to send request to my facebook to like my page.
you can view source and get my code, it all javascript integrated.
regards,
woolei - facebook application consultant
website - www.wootube.woolei.com

Posting Twitter/Facebook-Status without authenticating?

I'm currently working my way through the facebook-iphone-sdk and the MGTwitterEngine and I'm wondering why this all has to be so hard.
I'm not planning to access any data from the two social networks, just allow the users of my app to post a message as their status/update.
Now after I installed the facebook-iphone-sdk I realized they just send you to safari to authenticate at facebook and then back into your app.
Now this seems overly complicated for the users of my app, if they just want to post they don't have to go back.
Isn't there a way, I could just call something like
http://api.twitter.com/version/statuses/update?text="this is the new status text"
?
EDIT:
The first answer
http://twitter.com/home?status=[URL ENCODED TWEET].
is exactly what I need.
Unfortunately this works perfectly on the Laptop, though if you are not already logged in on the iPhone, you will be presented with a a screen where one has to press "login" once. (at the url "mobile.twitter.com/home?status=[]").
Pressing login there links you to "mobile.twitter.com/session/new" without the status argument and so once you are authenticated the status message is lost.
The URL you're looking for is:
http://twitter.com/home?status=[URL ENCODED TWEET].
This will open up a window of twitter and, if logged in, populate that tweet into the Tweet box.
For Facebook Share, the URL is
http://www.facebook.com/share.php?u=http://SHAREURLGOESHERE
There is lots of sample code that comes with the facebook-iphone-SDK. If you were to allow the user to pubish without authorizing it chances are apple would deny it.

Categories