Welcome to mirror list, hosted at ThFree Co, Russian Federation.

add_edit_goal.tpl « templates « Goals « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8a5c42588f08e4e4e5a7751729d35a84ea5aa6f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{if isset($onlyShowAddNewGoal)}
    <h2>{'Goals_AddNewGoal'|translate}</h2>
    <p>Goal Conversion tracking is one of the most efficient ways to measure and improve your business objectives.</p>
    <p>A Goal in Piwik is your strategy, your priority, and can entail many things: "Downloaded brochure", "Registered newsletter", "Visited page
        services.html", etc. What do you want your users to do on your website?
        You will be able to view and analyse your performance for each Goal, and learn how to increase conversions, conversion rates and revenue per visit.</p>
    <p>{'Goals_LearnMoreAboutGoalTrackingDocumentation'|translate:"<a href='?module=Proxy&action=redirect&url=http://piwik.org/docs/tracking-goals-web-analytics/' target='_blank'>":"</a>"}
    </p>
{else}
    <div class="clear"></div>
    <h2>{'Goals_GoalsManagement'|translate}</h2>
    <div class="entityList">
        <ul class='listCircle'>
            <li><a onclick='' name='linkAddNewGoal'><u>{'Goals_CreateNewGOal'|translate}</u></a></li>
            <li><a onclick='' name='linkEditGoals'>{'Goals_ViewAndEditGoals'|translate}</a></li>
            <li>{'Goals_LearnMoreAboutGoalTrackingDocumentation'|translate:"<a href='?module=Proxy&action=redirect&url=http://piwik.org/docs/tracking-goals-web-analytics/' target='_blank'>":"</a>"}</li>

            <li>{if !$ecommerceEnabled}
                    {capture assign='websiteManageText'}<a
                        href='{url module=SitesManager action=index}'>{'SitesManager_WebsitesManagement'|translate}</a>{/capture}
                    {capture assign='ecommerceReportText'}<a href="http://piwik.org/docs/ecommerce-analytics/"
                                                             target="_blank">{'Goals_EcommerceReports'|translate}</a>{/capture}
                    {'Goals_Optional'|translate} {'Goals_Ecommerce'|translate}: {'Goals_YouCanEnableEcommerceReports'|translate:$ecommerceReportText:$websiteManageText}
                {else}
                    {'SitesManager_PiwikOffersEcommerceAnalytics'|translate:'<a href="http://piwik.org/docs/ecommerce-analytics/" target="_blank">':"</a>"}
                {/if}
            </li>
        </ul>
    </div>
    <br/>
{/if}

{ajaxErrorDiv}
{ajaxLoadingDiv id=goalAjaxLoading}

<div class="entityContainer">
    {if !isset($onlyShowAddNewGoal)}
        {include file="Goals/templates/list_goal_edit.tpl"}
    {/if}
    {include file="Goals/templates/form_add_goal.tpl"}
    {if !isset($onlyShowAddNewGoal)}
        <div class='entityCancel' style='display:none'>
            {'General_OrCancel'|translate:"<a class='entityCancelLink'>":"</a>"}
        </div>
    {/if}
    <a id='bottom'></a>
</div>
<br/><br/>
{loadJavascriptTranslations plugins='Goals'}
<script type="text/javascript">

    var mappingMatchTypeName = {ldelim}
        "url": "{'Goals_URL'|translate|escape}",
        "title": "{'Goals_PageTitle'|translate|escape}",
        "file": "{'Goals_Filename'|translate|escape}",
        "external_website": "{'Goals_ExternalWebsiteUrl'|translate|escape}"
        {rdelim};
    var mappingMatchTypeExamples = {ldelim}
        "url": "{'General_ForExampleShort'|translate} {'Goals_Contains'|translate:"'checkout/confirmation'"|escape} \
		<br />{'General_ForExampleShort'|translate|escape} {'Goals_IsExactly'|translate:"'http://example.com/thank-you.html'"|escape} \
		<br />{'General_ForExampleShort'|translate|escape} {'Goals_MatchesExpression'|translate:"'(.*)\\\/demo\\\/(.*)'"|escape}",
        "title": "{'General_ForExampleShort'|translate} {'Goals_Contains'|translate:"'Order confirmation'"|escape}",
        "file": "{'General_ForExampleShort'|translate|escape} {'Goals_Contains'|translate:"'files/brochure.pdf'"|escape} \
		<br />{'General_ForExampleShort'|translate|escape} {'Goals_IsExactly'|translate:"'http://example.com/files/brochure.pdf'"|escape} \
		<br />{'General_ForExampleShort'|translate|escape} {'Goals_MatchesExpression'|translate:"'(.*)\\\.zip'"|escape}",
        "external_website": "{'General_ForExampleShort'|translate|escape} {'Goals_Contains'|translate:"'amazon.com'"|escape} \
		<br />{'General_ForExampleShort'|translate|escape} {'Goals_IsExactly'|translate:"'http://mypartner.com/landing.html'"|escape} \
		<br />{'General_ForExampleShort'|translate|escape} {'Goals_MatchesExpression'|translate:"'http://www.amazon.com\\\/(.*)\\\/yourAffiliateId'"|escape}"
        {rdelim};
    bindGoalForm();

    {if !isset($onlyShowAddNewGoal)}
    piwik.goals = {$goalsJSON};
    bindListGoalEdit();
    {else}
    initAndShowAddGoalForm();
    {/if}

</script>