Event Pages and Referrer URL Detection

Home Forums Ticket Products Eventbrite Tickets Event Pages and Referrer URL Detection

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #255183
    stevenmilstein
    Participant

    I’d like to offer a promotion code to visitors coming from an affiliate’s site. Is there a way to detect the referrer URL, determine if it matches a particular domain and then display a div section?

    #256122
    Barry
    Member

    It’s certainly possible – but can I ask, is this essentially the same question as you already posed here?

    #256146
    stevenmilstein
    Participant

    It’s to resolve the same challenge I have trying deal with a referrer site. I’d like to dynamically add a “Welcome .yada yada yada … here’s your promo code”.

    #256183
    Barry
    Member

    OK, I mean in general it’s as simple as this:

    if ( isset( $_GET['referral_code'] ) ) 
        echo '<div class="referral-stuff"> ... </div>';

    This is very much custom development territory, though, and so I’m afraid we’d need to leave this one to you 🙂

    Good luck!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Event Pages and Referrer URL Detection’ is closed to new replies.