Page Redirect in SharePoint - asp.net

How would I be able to redirect someone to a specific page based on their user profile information such as the department they are in?
I came up with 2 options:
Have a "My Department" link to a aspx page that uses SharePoint's object model to determine what department they are and then redirect based on their department.
Have an HTTPModule redirect the user after performing the user profile check.
Number 2 seems dumb, since it means we will be checking for every link we click.
Number 1 seems possible.
Is there a better way to redirect a user to a page based on their profile data?

I would go with number 1. You could even make a user control that calculates the link ahead of time and cache it per user to reduce load.

Check out Liam Cleary's blog, he has written and published a pretty sophisticated web part that does some of this:
http://www.helloitsliam.com/archive/2008/07/15/redirect-web-part-update.aspx

Is your goal to show personalized content? If so and you are using MOSS have you thought about using Audiences?

Related

Redirect a typeform page and show results on new page

I have a typeform form that has a different score per answer. At the end of the form I want to redirect to a page on my website (on Wordpress). On that page I want to have a section that has the form results (eg "you scored 5 out of 10").
Is there a way to carry these results onto my website?
I've tried researching web hooks, but I am lost.
I think this rather a Typeform question than a pure programmatic question.
On your Typeform you can create as many Thank you screen as you like.
Each thank you screen could have its own text and its own redirect link.
On the redirect link, you can pass a query parameter taking the value of the score calculated on Typeform. Click on the + button to select either a response to a question, a hidden field, or the calculated score.
And you can redirect the user to your Wordpress with a URL like
https://mywebsite.com?score={value from typeform}
If you have more questions you should contact Typeform support directly.

How do we run two A/B tests in Google optimize but only letting visitors enter one of the a/b tests?

For Example, We have two pages home page and contact page and both have their own variants in google optimize. So when visitor visit homepage and get the new variant from google optimize then it should not see a new variant of contact page when visitor redirects to contact page and vise Versa. Hope you get the point.
One approach is to track which variations users get into using cookies and target accordingly. So, let's say your user lands on the home page and is bucketed into the new variant. You use custom JS to drop a cookie along the lines of user_has_seen_new_variant=true, and in your second experiment you target based on whether or not people have that cookie.
Another approach would maybe be to combine your experiments into one, where you're targeting both pages. That way you would have control over what people are seeing on either page.

set up dtm and analytics on a new website - unique visitors

I have a 3 page website. I want to know how many unique visitors visit each page of the website. That is how many unique visitors in page A, and from page how many reach page B and from page B how many reach page C.
But, on page A, there is an option for Male and Female. I want to further know how many Male Unique Visitors and how many Female Unique Visitors visited on each page.
I am unable to determine or understand how the eVars and success events will be set in this scenario.
Please help.
If you're using DTM then you can use page load rules to see how many people hit each page. You can use a custom event that fires on page b if the referrer is page a or whatever combination you want. You can use an event based rule that fires when they submit their form (I'm guess you have some sort of form) that is collecting their gender. Gender would go into an evar, I'd also store the referrer in an eVar if you're interested in how people travel around your site and then use some metrics in the adobe dashboard to get the segments that you want.
Those are all very simple things to do. If you still are having issues, you should check out the forums or docs

Wordpress rsvp/contact form pre-populated

I am very new to wordpress and would like to create a rsvp form with a difference.
For the launch of a company we are having multiple events and i would like to track the rsvp for each event.
Here is the scenario:
I send out paper invites for my wedding and the events and ask them to rsvp on the website and give them the web address, and a unique code.
They go to the website and proceed to "login" which they do with their surname and unique code. Once they are logged in, they can rsvp however they can only see the events they are invited too and can only choose up to the number of people i have allocated them on the invitation.
This will all get stored in the database i have with the contacts name and unique reference.
So where to begin? I am currently looking at contact form 7 but cannot get the form to be dynamic to login.
Any direction would be hugely appreciated!
Thanks!
I would look at http://www.gravityforms.com/
It's not free but it is a MUCH more dynamic and robust form plugin.
Might be worth looking in the WP Plugin Repository for plugins tagged with events, events management or RSVP, rather than trying to build a solution from CF7?

Wordpress redirect on password to certain page

My client would like to give each customer a password and once entered, this should then redirect them to a certain page. I.e. password 'cake' would go to a page about cakes, password 'cats' would go to a page about cats. Sounds simple enough, is there a plugin that you guys are aware of that would do it? Or is it possible straight from WP itself?
Thanks
Take a look at Peter's Login Redirect. I haven't used it myself, but it has good ratings, has been updated recently, and it sounds like it can redirect based on the login criteria entered.
On a side note, I can't wait to see this website that features cats and cakes!
Good luck.
I'm sure there are better solutions out there. I accomplished what you are looking for by using conditional fields and html in Gravity forms. To mimic a password, I removed the Gravity forms submit button, and I basically created my own submit button in the html field to redirect the visitor to my desired url. Using conditional fields, I hide the button until the user enters the exact passphrase.
This method also allowed me to create hide/show multiple buttons matching different passcodes. We give private clients different passcodes to redirect them to different pages and content.
I've searched for hours for that solution! Here You go #ajguk: http://thecodecave.com/plugins/smart-passworded-pages/ or http://wordpress.org/plugins/smart-passworded-pages/
The plugin is called "Smart passwor pages" (for those experts that can't reed what the link says). It is as close as it gets 4 me. The plugin is old, but it works. Instalation is simple. You just need to put shortcode [smartpwpages] on a page which gives You a login field and every childpage under page with shortcode (if passworded protected throug WP) will work exactly like you asked. You will need to enter into login field only a password and it will redirect user to a page that this password protects... Just need to make your passwords unique for every childpage.
Cheers!

Resources