How to add a tracking parameter to Google +1 button, to track click-backs - google-plus-one

I have some information about the visitor on my page that I would like to attach to the URL of the page so that when it's Liked to Facebook or +1'd to Google, and someone clicks back through that link, I can track that. For Facebook, "ref" parameter does exactly what I need - the link goes to the wall of the sharer as http://example.com/?fb_ref=MYVALUE. Is there a way to do the same with +1 button?
If I'll just add a parameter myself, Google will consider http://example.com/?g_ref=far a different page from http://example.com/?g_ref=bar.
I tried adding a hash parameter like this: http://example.com/#g_ref=far - this kinda works, but only for the title of the story. On the sharer's wall, the title will link to correct URL (with the hash param), but if someone clicks on the story thumbnail, it goes to the URL with hash param stripped out (which is weird, but true).
So is there a way to mark the shared URL somehow to track click-backs from Google Plus?

You can also visualize activity on Google+ for a particular URL is by viewing the ripples.
Visit https://plus.google.com/ripple/details and enter your URL.

Related

Saving dynamic search parameters before navigation in React

I have a dynamic search component which filters pre-loaded search results based on a hook search string.
Something like this: https://codesandbox.io/s/4qp6xn1rkw
Currently, when you select one of the search results, it takes you to the result page, and when you press the "back" button, it takes you back, but the hook is reset, so all of the search parameters are lost.
I want to save the search parameters right before the user navigates away, so that when they go back, they can click on another search result in the same query.
I've considered saving them in local storage, but that introduces unwanted behavior when a user leaves the website and comes back later.
I was thinking about putting the search query into the URL right before I navigate away to the result page, but I can't find a reasonable way of doing this. (I'm using React Router V4)
It would also be great to have the URL update as the user searches, so that they can bookmark the search query for later use, but that's not the primary priority.
PS: If you wanna see my actual implementation, you can see it here: http://aesthetics.red

How to use two arrays together in k-object tag in Kitsune?

We are calling every dynamic data under location's schema except business updates. Everything is fine except update-details page because, in update details page we have the k-object tag of updates.
When we are moving out from update-details page to any other page, where k-object tag is of location then the k-dl tag of with location is not accessible.
For e.g.
URLs before getting into update-details page.
www.example.com/bhutan/about-us/k._id
URL after getting into update-details page.
www.example.com//about-us/
Please help...
If i understand this question right, you want to access object in another array while you are navigating from one details page to another ?
In this case, Kitsune allows you to access any array in any page. Say you have a page with:
k-object="[[update in Business.updates]]"
in the same page you want to navigate to another page, which is details page of a product, then -
Click Here
Let me know if this answers your question, else do give me code examples for me to give a clearer answer.

AngularJS - how to use a route with dynamic data for template

I'm not sure what I'm fully after really hence this could easily be a duplicate of another topic - if so please direct me :)
Anyway, what I want to do is something like a shopping page, where there is a page listing out all the items. This part I can do fine :)
The issue I have is I only want one page which "details" each item - as they all share the same layout. So in this case, depending on what's selected, it routes to a details page (maybe with corresponding ID of some sort) that displays the details of whatever clicked.
Is this possible? Hope I've explained this well enough - if not please let me know.
TIA
You don't need to use a route for each item. You can use a route for the page itself (with ngView, for example) to present the details page, and then (assuming you have an object with the data) you present the current item's model appropriately.
If you can present some code I can give you a better idea.

Drupal 7 displaying different user content

I have searched and searched and cannot find a solution to my specific problem...
I have a site that users join, and can upload their own videos. I crated a specific video type to handle this upload.
Other users can log in and see this content, they get to the content by clicking on a "profile" link for a specific user, and then it should display all the videos that user uploaded. Currently all I can get to work is display ALL of that content type, or none... I cannot figure out how to just get the user being looked for.
In my URL i have the user name being sent, because other info on the profile page that loads is driven off of that ( looked up in mysql tables and displayed with PHP).
As I mentioned I have a filter that limits to playervideo ( which is my content type) and that works, but as mentioned it displays all not just the user I am looking for.
any help would be much appreciated!!
thanks
I think your question is "How do I make a page for all users that lists content authored by a specific user"
I'd do this with the Views module.
Add a view for all your nodes.
Then add a "relationship" for "Content: Author".
Now add a "contextual filter" for the field "user: uid" with a default argument the userid from the URL.
Or you could try to add a contextual filter of "Content: User posted or commented" with the default value as the UID from the URL.
Cheers!

How to pass url parameters without showing them to the end user in Salesforce?

I want to pass a url parameter in salesforce, but it shouldn't be visible to the end user in the url. Is it possible? Please suggest if there are any other alternatives? Thanks in advance.
In my scenario, I am dealing with 2 pages with individual controllers. In one of the page I am dealing with apex tabs. So I want to get the current tab name. I found the solution for this as passing it into to the url.
You don't have to pass parameters between pages using the URL, you can do this using form parameters which will "hide" the values from the user (nothing displayed in the URL) like this:
<apex:param name="contIdParam" value="{!cont.id}" assignTo="{!contIdChosen}"/>
This article may be helpful: http://bobbuzzard.blogspot.co.uk/2011/07/passing-parameters-to-apex-method-from.html

Resources