首页 > 代码库 > tracking

tracking

public enum TrackingPage : byte
{
Amazon,
AmazonBaby,
CelebrityWeddingBuzz,
Charity101Page,
CharitySIPFullPage,
CharitySIPModal,
CouplesSearchResults,
CouplesSearchResultsModal,
CreateRegistryModal,
DirectLink,
eWedding,
FacebookPost,
Gifts,
GR360,
LinkRegistryModal,
LinkRegistrySearchResultsModal,
MomentVille,
MyPlannerHomePage,
Mywedding,
Nearlyweds,
ProjectWedding,
Redirect,
RegistryRemove,
RegistryCenterPage,
RegistryHubPage,
ROSDARTAd,
SearchEngine,
Shutterfly,
SIPFullPage,
SIPModal,
Spaweek,
STAFEmail,
TBCouplesSearchResults,
TBUWRegistryPage,
TKCouplesSearchResults,
TKUWRegistryPage,
TwitterPost,
UBVRPage,
UGVRPage,
UBVRRegistrySettings,
UWAdvancedSettingsModal,
WCCouplesSearchResults,
WCNavBar,
WCUWRegistryPage,
WCUWRegistryPageLeftNav,
TKUWRegistryPageLeftNav,
WeddingMapper,
WeddingTracker,
WeddingWindow,
Weddingbee,
Weddings,
}

public enum SourceType : byte
{
None,
BabyRegistryCreation,
BabyRegistryProfile,
BabySearchResults,
BabySearchWidget,
BabyWebsite,
DirectLink,
ElectronicCard,
Manage_AddRegistry,
Manage_ClaimRegistry,
Manage_EditRegistry,
Manage_FindRegistry,
Manage_RegistryProfile,
Manage_RemoveRegistry,
Manage_UW_EditRegistry,
ManageBaby_AddRegistry,
ManageBaby_ClaimRegistry,
ManageBaby_EditRegistry,
ManageBaby_FindRegistry,
ManageBaby_RegistryProfile,
ManageBaby_RemoveRegistry,
ManageBaby_UW_EditRegistry,
MyPlanner,
RegistryCreation,
RegistryPopulator,
RegistryPopulator_API,
RegistryProfile,
RegistryHomePage,
SearchEngine,
SearchResults,
SearchWidget,
SearchPopulator_API,
ShareRegistryEmail,
ShareRegistryLink,
SocialProfile,
UniversalRegistry,
WeddingWebsite,
RegistrySplashPage,
Manage_ProfileSettings,
}

public enum SourceSection : byte
{
None,
AffiliateBridalPage,
AffiliateCreationMall,
BridalPage,
Charity101,
CloseModal_Refresh,
CreateModal,
RetailerCreateGrid,
CWBHomepage,
DirectLink,
EmailProvider,
Facebook,
ItemCard,
LeftNav,
LinkedRegistries,
LinkedWebsite,
Manage_AddRegistry,
Manage_LinkedRegistries,
Manage_LinkedWebsite,
Manage_ManualRegistries,
Manage_RegistryProfile,
ManageBaby_AddRegistry,
ManageBaby_RegistryProfile,
Manage_RetailerCard,
Manage_ItemCard,
ManualRegistries,
MultiplePages,
OtherRegistry,
PopulatorSearch,
PopulatorSearchResults,
RegistryPopulatorSearch,
RegistryPopulatorSearchResults,
RegistryColumn,
RegistryHomepage,
RegistryItem,
RegistryPage,
RegistryWidget_300,
RetailerColumn,
RetailerCard,
RightNav,
ROS,
SearchEngineResults,
SearchResults,
SearchPopulatorSearch,
SearchWidget,
SearchWidget_135,
SearchWidget_145,
SearchWidget_160,
SearchWidget_300,
SIPFullPage,
SIPModal,
Twitter,
Variable,
WebsiteColumn,
SuggestedRegistries,
SearchRegistries,
JoinFree,
Login,
RegistrySplashPage,
FindYourRegistries,
SearchModal,
SearchModal_NoResults,
UpdatePage,
ShareProfile,
Filter,
Manage_WhatIsAProfile,
Manage_ShareProfile,
Manage_AddExistingRegistry,
Manage_SearchExistingRegistries,
Manage_AddManualRegistry,
Manage_NoResults_SearchExistingRegistries,
Manage_NoResults_AddManualRegistry,
Manage_ProfileSettings,
Manage_PersonalMessage,
Manage_RegistrySettings,
Manage_CharitySettings,
Manage_WWSSettings,
Manage_URLSettings,
Manage_PictureSettings,
RegistryHeader,
}

public enum SourcePlacement : byte
{
None,
AddButton,
AdditionalLinks,
Bottom,
BuyButton,
CreateButton,
CreateLink,
DirectLink,
FeaturingLink,
FullURL,
Header,
Logo,
ManageButton,
OtherButton,
ProductImage,
RegBanner_RegCentral160,
RegBanner_RegCentral300,
RegBanner_RegCentral300x250,
RegBanner_RegCentral728x90,
RightNav,
Search,
SearchButton,
SIPLink,
Submit,
TextLink,
TopNav,
UpdateButton,
Variable,
ViewButton,
LinkedRegistries,
ManualRegistries,
Manage_RetailerColumn,
JoinButton,
LoginButton,
FindRegistriesButton,
Toggle_Claim,
Toggle_Unclaim,
SaveButton,
SearchAgainButton,
SearchAgainTextLink,
ShortenedURL,
CopyURL,
Facebook,
Twitter,
STAFEmail,
Retailer,
Price,
Availability,
Reset,
ProfileSettingsButton,
PersonalMessageSection,
SeeExamplesButton,
UseExampleButton,
RegistrySettingsButton,
Toggle_ShowRetailer,
Toggle_HideRetailer,
Toggle_ShowManual,
Toggle_HideManual,
RemoveRetailerButton,
RemoveManualButton,
UpdateManualButton,
Toggle_ShowProducts,
Toggle_HideProducts,
CharitySettingsButton,
TextLink_FAQ,
TextLink_CharityInfo,
ChooseCharityButton,
ChangeCharityButton,
RemoveButton,
WWSSettingsButton,
Toggle_ShowTK,
Toggle_HideTK,
Toggle_ShowWC,
Toggle_HideWC,
URLSettingsButton,
PictureSettingsButton,
DragAndDrop,
BrowseButton,
Image,
ManualTextLink
}

public enum LandingType : byte
{
None,
BabyRegistryHomepage,
BabyRegistryProfile,
BabySearchResults,
BabyWebsite,
CreateModal,
RetailerCreateGrid,
Manage_RegistryProfile,
PopulatorComplete,
RegistryPopulatorComplete,
RegistryPopulatorSearchResults,
PopulatorSearchResults,
RegistryHomepage,
RegistryProfile,
RetailerAdditionalLink,
RetailerCreate,
RetailerGVR,
RetailerBVR,
RetailerManage,
RetailerOther,
RetailerPDP,
SearchResults,
SearchPopulatorSearchResults,
SIPFullPage,
SIPModal,
UniversalRegistry,
WeddingWebsite,
JoinForm,
LoginPage,
SearchModal,
SearchResultsModal,
CopyURL,
Facebook,
Twitter,
STAFEmailModal,
Filter_Retailer,
Filter_RetailerAll,
[Description("Filter_Price0-49")]
Filter_Price0_49,
[Description("Filter_Price50-99")]
Filter_Price50_99,
[Description("Filter_Price100-149")]
Filter_Price100_149,
[Description("Filter_Price150-plus")]
Filter_Price150_plus,
Filter_PriceAll,
Filter_Availability,
Filter_AvailabilityAll,
Filter_Reset,
WhatIsAProfileSection,
AddExistingRegistrySection,
Manage_SearchResults,
Manage_ProfileSettings,
Manage_PersonalMessage,
Manage_RegistrySettings,
Manage_CharitySettings,
CharityFAQPage,
CharityInfoWindow,
Manage_WWSSettings,
Manage_URLSettings,
}

public static class EnumDescription
{
public static string ToDescription(this LandingType value)
{
var field = typeof(LandingType).GetField(value.ToString());
var attribute = Attribute.GetCustomAttribute(field, typeof(DescriptionAttribute)) as DescriptionAttribute;
if (attribute != null) return attribute.Description;
else return value.ToString();
}
}

public enum SourceAffiliateId
{
None,
UniversalRegistry = 9999, //TBD, SourceAffiliateId of UniversalRegistry is undecided
WeddingChannel = 950,
TheKnot = 994,
TheBump = 1090,
TheBumpBabyWebsite = 2230,
GiftRegistry360 = 2150,
ProjectWedding = 2115,
Weddingbee = 2116,
GiftsCom = 1800,
EweddingCom = 2113,
MomentVilleCom = 2119,
MyweddingCom = 2112,
Nearlyweds = 2200,
Shutterfly = 1010,
WeddingMapper = 2130,
WeddingTracker = 998,
WeddingWindowCom = 2110,
PaperlessPost = 2350,
}

/// <summary>
/// All jump link supported types in current tracking jump link system.
/// </summary>
public enum JumpLinkType : byte
{
/// <summary>
/// Record click and then redirects to the Retailer Create page for the Registry Creation Mall
/// </summary>
AffiliateCreate,

/// <summary>
/// Record click and then redirects to the Retailer Create page
/// </summary>
Create,

/// <summary>
/// Record click and then redirects to the provided landing URL
/// </summary>
Forward,

/// <summary>
/// Record click and then redirects to the Retailer Manage page
/// </summary>
Manage,

/// <summary>
/// Record click and then redirects to the Retailer additional information page
/// </summary>
Other,

/// <summary>
/// Record click and then redirects to the Retailer store information page (SIP Full Page)
/// </summary>
Sip,

/// <summary>
/// Record click and then redirects to the Retailer Guest View
/// </summary>
View,

/// <summary>
/// Record click and then redirects to a manual registry
/// </summary>
Manual,

/// <summary>
/// buy action
/// </summary>
RegItem,
}

tracking