omniture clickmap implementation on buttons, non-true link - javascript

Is it possible to implement omniture tracking on buttons or non links or that does nothing, maybe opening up a lightbox, google pin etc..?
I tried to put onclick=s_objectID=xxxx on these and it is however not tracking. Only tags with true links works.
Has anyone has a good suggestion or workaround?
Cheers
`a href="#" onclick="s_objectID=trackThisLink"`
`button onclick="s_objectID=trackThisLink"`

You will want to manually send a custom link image request in to have this data sent. There is a link tracking white paper within the SiteCatalyst interface you can use to get additional details on how to implement this.

Related

jQuery Accordion plugin - SHOPIFY

I'm hoping someone can help to answer my question...
I am currently using an accordion on my Shopify site to display some pretty extensive content. You can see a demo of what I'm using here: http://www.snyderplace.com/demos/accordion.html
I'm wanting to be able to create a link on my webpage that will take the customer to, say the 3rd panel of the accordion OPEN, but I just can't figure out what JS I need to be using to do this! Can someone help! Please?
First thing that comes to my mind is passing a a meaningless # along with the link, like you would be going to a anchor. Then on page load check to see if the URL contains the hashtag, if true trigger the panel you want to open.
Link on initial page:
<a href="/newpag#panel-3" >link</a>
jQuery:
if(window.location.href.indexOf('#panel-3')){
$('.thirdSection').trigger('click')}
I haven't tested this at all but with a bit of tweaking it should do the trick.

How should I render a widget with many links inside a blog so google don't penalize the blog?

We run a service (will not mention the URL, as this is not a pitch) and need advice on Google-viewing-links matters.
The service is for bloggers and allows them to create a "linkup" inside their blog post.
The linkup is like a mini pinterest inside their own blog where other users can add images/links/blogposts.
The widget that creates this linkup is a javascript snippet that does a remote call to our server. The response of the server is rendered inside the user's blog.
Now, the widget contains quite a few links. And we have set all links as nofollow so they don't look spammy in the eyes of google.
Going to google webmaster tools, I can see that the crawler can easily render the links even if they come from javascript.
So my question is: Is it better to
completely hide the widget from google
just leave it as it is, renderable with nofollow on the links
remove the links and create them only when someone clicks on them?
any other suggestion is appreciated!
Hiding of content including links can be considered as cloaking. If links are present on page there is no need to hide them.

Google Analytics setup (advanced Javascript)

I have three buttons on my website, all of the buttons opens a pop up contact form.
The three buttons are for different things e.g:
Request a call
Get a brochure
Visit us
But they all open the same form; What I want to do is use Google analytics to track the form and know what button they originally clicked; is this possible?
Can an onClick function be used on the button or something?
Really need some help on this!
Event tracking would be a better option since it won't over-inflate your pageviews. You can also set events as goals now.
Request a call
See the Event Tracking Guide
yes it's posible... '_trackPageview' it's your what are you looking for
check this links:
Official:
http://support.google.com/analytics/bin/answer.py?hl=en&answer=2558867
Others:
http://viget.com/advance/how-to-track-internal-links-in-google-analytics (recommended)
http://www.pointit.com/how-to-track-button-clicks-with-google-analytics/

Onclick to iframe? Filling anchor on same mouse click? Loading separate URL in to sidebar without any extra input?

I am attempting to have a link load an article from my domain in to an iframe. I understand that it is usually easy to link using:
Google
But when it comes to Iframes I am having difficulty formatting the code correctly so that it will display inside the iframe.
This leads in to my next question. If this is easily remedied then is it possible to also execute code that will fill in the URL of an anchor in the same mouse click.
Finally, in that same mouseclick would you be able to execute code similar to:
$('#abc').click(function() {
$('#xyz').load('content.html');
});
In order to populate a sidebar with information from a second link?
Thank you for taking the time to read over this. I am sorry if it is truly elementary, but this is my first bona fide webpage, and my limited knowledge is really delaying the execution of my ideas.
Special thanks to wdm for allowing me to progress to this stage of questioning by answering my earlier concerns.
To target your iframe, change to:
Google
for the 2nd part, the above thing can be reused instead of using jQuery.

Javascript link SEO

I have a page where in a photo and description link is there, i want replace the hard coded link with a javascript,which will add them,as i dont want the search engine to scroll the links.I dont wanna use "nofollow" attribute.How to code it in js.
Update: I may have misunderstood you - I thought you want to keep search engine visibility. Can you clarify which one you want? If you don't want the links and images to be indexed, I'd say nofollow is in fact your best friend. A JavaScript based solution is of course doable, but will lock out clients that don't have it enabled.
Original answer
The usual way would be to keep the link in a standard href attribute, and adding a JavaScript onclick event that does its thing using the href, and returns false so the "normal" link doesn't get triggered.
This leaves a search engine-readable link in place, and enables clients with JavaScript disabled to still somehow access the image.
This technique is also known as progressive enhancement.
I would be surprised is Google couldn't handle links created from Javascript. If you want to keep the linked pages unindexed, use nofollow on the link or noindex on the target page or add them to robots.txt.

Categories

Resources