When you select Client-Side as the type of Campaign, a larger collection of Triggers is available to you. Among them is the Hash Query Trigger. Collectively, the Hash Query Name Condition field and the Hash Query Value Condition fields simulate a query in the same way the hash sometimes simulates a path. They work the same way as a Query. SiteSpect looks for the first question mark in the hash to locate the Hash Query. For example, in the following URL:
shirttype=plaid is the Hash Query.
Use the Hash Query Name Condition field to enter the parameter you are looking for. Use the Hash Query Value Condition field to enter the value you are looking for. From the example, the Hash Query Name Condition is shirttype and the value is plaid.
When this Trigger is satisfied, SiteSpect applies the changes specified in the What to Change area.
When you select Hash Query as the type of Trigger, several options for entering the Name and Value are available:
- Contains – The text that you are matching must contain what you enter here. The text can be anywhere within the Hash Query.
- Does not contain – The text that you are matching must not contain what you enter here.
- Starts with – The text that you are matching must begin with what you enter here. It must be at the beginning of the Hash Query.
- Does not start with – The text that you are matching must not begin with what you enter here.
- Ends with – The text that you are matching must end with what you enter here. It must be at the end of the Hash Query.
- Does not end with – The text that you are matching must not end with what you enter here.
- Exactly – The text that you are matching must be exactly what you enter here.
- Does not match exactly – The text that you are matching must not be exactly what you enter here.
What to Change
Use the Selector field to enter the name of a CSS Selector. When a page component matches this Selector, SiteSpect applies the settings specified in the Changes field.
The Changes field defines exactly what you want to replace. There are several options:
- Insert HTML – Replaces the HTML content of the selected components.
- Set Attribute – Replaces the Attribute with the specified value if the Attribute exists. If the Attribute does not exist, this adds it. Enter the name of the Attribute on the left side of the field and the Value on the right side.
- Set CSS – Replaces the CSS rule with the specified value if the rule exists. If the CSS rule does not exists, this adds it. Enter the rule on the left side of the field and the value on the right. Note that if there is an !important rule, this won't override it unless this rule is also !important.