                 @location.replace()
             return @q.reject(xhr)
 
-        @scope.$on("membersform:new:success", @.loadMembers)
+        @scope.$on "membersform:new:success", =>
+            @.loadMembers()
+            @analytics.trackEvent("membership", "create", "create memberships on admin", 1)
 
     loadProject: ->
         return @rs.projects.get(@scope.projectId).then (project) =>

</ul>
"""

MembershipsDirective =  ->
    template = _.template(paginatorTemplate)

    linkPagination = ($scope, $el, $attrs, $ctrl) ->


        promise = @.loadInitialData()

        promise.then  =>
            @appTitle.set("Membership - " + @scope.project.name)

        promise.then null, (xhr) =>
